note
bjelli
<p>I'm not too sure I understood the question, I assume
you want to get all the CGI-Paramers into your
subroutine like so:
<code>myfunc(return => query->param("return"), authors => query->param("authors")); </code>
<p>The short answer:
<code>myfunc( map { $_ => [$query->param($_)] } $query->param() );
</code>
<p>the long answer:
<P>Get a list of all the parameters with $query->param(). This will be fed into map. <p> Map can be used to apply
some commands to every element in a list, and construct a
new list from the result. In this case for every element
you feed into the map, you get back two elements: you get back the key, and an anonymouse array with the values.
<P>that's it
--
Brigitte 'I never met a chocolate I didnt like' Jellinek
http://www.horus.com/~bjelli/ http://perlwelt.horus.at
61865
61865