Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I would like to make a subroutine like:
myfunc(return => query->param("return"), authors => query->param("authors"));
(with many more parameters)
But I want those arrays from query->param() to be passed to the function as array references instead, naturally. Is there any way to do so without a bunch of temporary variables?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I get a reference to a subroutine return value?
by japhy (Canon) on Mar 02, 2001 at 23:58 UTC | |
|
Re: How do I get a reference to a subroutine return value? - or is it "how do I get cgi parameters into a subroutine"
by bjelli (Pilgrim) on Mar 03, 2001 at 03:22 UTC | |
|
(tye)Re: How do I get a reference to a subroutine return value?
by tye (Sage) on Mar 03, 2001 at 11:48 UTC | |
|
Re: How do I get a reference to a subroutine return value?
by steveAZ98 (Monk) on Mar 03, 2001 at 09:12 UTC |