SPUG: Passing arguments to a code reference
mike
mike206 at gmail.com
Tue Apr 18 14:22:23 PDT 2006
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/spug-list/attachments/20060418/fc5c8425/attachment.html
More information about the spug-list
mailing list