Thread Auslesen von Parametern aus einer URL im Textstring
(3 answers)
Opened by jan99 at 2013-10-24 10:54 Code (perl): (dl
)
1 2 3 4 5 6 7 use URI::Split qw(uri_split); use CGI; my $uri = "http://www.stolpersteine-bremen.de/detail.php?id=549"; my $uri_splitted = [uri_split $uri]; # query_string in [3] my $query = CGI->new($uri_splitted->[3]); print $query->param('id'); # 549 |