Yes. Brillant !
Really I love perl !

Thanks for the trick

Randal L. Schwartz wrote:

>>>>>>"Remi" == Remi Cohen-Scali <[EMAIL PROTECTED]> writes:
>>>>>>
>
>Remi> Hello
>Remi> I'am new on this list and don't know how patch are submitted, but I'd
>Remi> like to know if it could be possible to take into account the kind of
>Remi> enhancement I made for my own. I was needing a way to pass a user data
>Remi> to the scan method called for cookie jar scanning. Here is the
>Remi> patch. Please tell me your feelings about it.
>
>It's not needed.
>
>Remi> -=item $cookie_jar->scan( \&callback );
>Remi> +=item $cookie_jar->scan( \&callback, $UserData );
>
>Just call it as:
>
>        $cookie_jar->scan( sub { &callback($UserData, @_) } );
>
>No need to change the core version.
>
>Closures are your friend.  Learn to use them.
>


-- 
                   Remi Cohen-Scali
<[EMAIL PROTECTED]>          <[EMAIL PROTECTED]>



Reply via email to