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.
In reply to •Re^7: How to de-reference a coderef?
by merlyn
in thread How to de-reference a coderef?
by AndyH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |