in reply to Re^6: How to de-reference a coderef?
in thread How to de-reference a coderef?
but that doesn't do the blessing and overloading. You'll get to use the syntax of:sub Sub (&) { return shift }
just as I indicated before.my $s = Sub { print +shift } $s->('hello');
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
---|