Re: New Quiz: "What does this code do?" (1-December-2006)

Charles Abney <[email protected]> Wed, 13 Dec 2006 14:05:54 -0800
Newsgroups gmane.comp.lang.perl.qotw.discuss
Message-ID <[email protected]>
Owen wrote:
> On Fri, 1 Dec 2006 16:35:44 +0200
> Shlomi Fish <shlomif-ik1l9ssToec+JF/[email protected]> wrote:

>>     my (@list) =
>>     (
>>         grep { $cgi->param("$prefix$_") }
>>         map { /^${prefix}(\d+)$/ ? ($1) : () }
>>         $cgi->param()
>>     );

> I have waited 60 hours and more now. Just wondering if there was a follow up to the message because like the friend above, I too have problems understanding what was going on!

Best I can get is that it'll grab the values of a subset of parameters
submitted in a request.  Say you have 20 radio groups named radio01,
radio02, etc.  Give $prefix a value of "radio", and bob's your uncle.