more useful options | |
PerlMonks |
Re^4: How to call a sub-routine refby BillKSmith (Monsignor) |
on Oct 20, 2012 at 04:00 UTC ( [id://1000085]=note: print w/replies, xml ) | Need Help?? |
I like the second rule in perlref.
Anywhere you'd put an identifier (or chain of identifiers) as part of a variable or subroutine name, you can replace the identifier with a BLOCK returning a reference of the correct type. Sure, the result is often ugly, but there are no exceptions or special cases. What more could my poor memory want.
Bill
In Section
Seekers of Perl Wisdom
|
|