>>>>> "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.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to