logo      
Custom Search

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

Date: December 13, 2006
From: Charles Abney <cabney-XkckGZ689+c@xxxxxxxxxxxxxxxx>

In-reply-to: <20061214084046.d03dd17d.rcook-iMDvLBO0GCq6c6uEtOJ/EA@xxxxxxxxxxxxxxxx>
References: <200612011635.44839.shlomif@xxxxxxxxxxx> <20061214084046.d03dd17d.rcook@xxxxxxxxxxx>

Owen wrote:
> On Fri, 1 Dec 2006 16:35:44 +0200
> Shlomi Fish <shlomif-ik1l9ssToec+JF/nGntIXQ@xxxxxxxxxxxxxxxx> 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.





Custom Search
home | non blog view