in reply to How do I get a reference to a subroutine return value?
If you need the param values in an array ref to pass to the sub then you can use thismyfunc($query); sub myfunc { my $query = shift; }
my @values = map { $q->param($_) } $q->param; myfunc(\@values);
|
|---|