tosub get_params() { #* # to get the URL parameters, and package # them into a handy little scalar fit #* #@_; # (no parameters) my $cgi = CGI->new(); my $query = join('&', map { $_ . '=' . $cgi->param($_) } $cgi->param +()); return $query; # a scalar of all URL parameters, each value separate +d by an & #usage: my $url_params = get_params(); }
sub get_params() { #* # to get the URL parameters, and package # them into a handy little scalar fit #* #@_; # (no parameters) my $cgi = CGI->new(); my $query = map { $_ . '=' . sanitize($cgi->param{$_}) } map { sanit +ize($_) } $cgi->param(); return $query; # a scalar of all URL parameters, each value separate +d by an & #usage: my $url_params = get_params(); }
hopefully that achieves what i'm looking to do. as for "assuming $cgi->param('someval')" returns a list, i don't think it does. it returns a scalar. could be wrong, but it's how i see it getting used everywhere (my $p = $cgi->param("p");)
In reply to Re^4: problem with Crypt::PBKDF2
by jamroll
in thread problem with Crypt::PBKDF2
by jamroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |