--# using Vars... use CGI; $q = new CGI; $params = $q->Vars; foreach $key (keys $params) { # If the param is just a number then it is # assumed to be an item number. You may want to # change that assumption. if ($key =~ /^\d+$/) { # Do something with $params->{$key} } }
(Thanks to Zaxo for code help)# using param... use CGI; $q = new CGI; # If the param is just a number then it is # assumed to be an item number. You may want to # change that assumption for (grep(/^\d+$/, $q->param)) { # Do something with $q->param($_) }
In reply to Re: Handling Dynamic URL Parameters
by LTjake
in thread Handling Dynamic URL Parameters
by the_Don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |