in reply to Newbie Array Question
This is probably safer than rolling your own method.use CGI; my $q = new CGI($response); print 'My ID = ' . $q->param('id'); print 'My Results = ' . $q->param('results');
Note the difference in syntax to your example - you have to use double quotes to print variables, and hash elements are accessed with a $ sigil and curly brakets around the key name.my %params = $q->Vars; print "My ID = $params{'id'}";
|
|---|