SPUG: Passing arguments to a code reference

Rick Croote rick.croote at philips.com
Tue Apr 18 15:13:49 PDT 2006

Try  $subref->(parm1, parm2, ....)

Rick Croote
Software Engineer
Environment and Tools Team
Philips Medical Systems
Bothell, WA
Rick.Croote at Philips.com
Phone: 425-487-7834

mike <mike206 at gmail.com> 
Sent by:
spug-list-bounces+rick.croote=philips.com at pm.org
2006-04-18 02:22 PM

spug-list at pm.org

SPUG: Passing arguments to a code reference

Hi there

I've tried a few things, including using the PROTO in the sub declaration, 

but I cant seem to figure out how to pass some args to a code ref after 
the creation of the code ref

This code ref is being passed to an object which would like to add a 
hashref to the argument list. 

This is in the perlsub documentation
    $subref = sub (PROTO) : ATTRS BLOCK; # with proto and attributes 
Seattle Perl Users Group Mailing List 
     POST TO: spug-list at pm.org
SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
    MEETINGS: 3rd Tuesdays
    WEB PAGE: http://seattleperl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/spug-list/attachments/20060418/fa03bd38/attachment.html 

More information about the spug-list mailing list