|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Why are my functions second-class citizens?by geary@acm.org (Initiate) |
| on Feb 15, 2012 at 16:30 UTC ( #953996=perlquestion: print w/ replies, xml ) | Need Help?? |
|
geary@acm.org has asked for the
wisdom of the Perl Monks concerning the following question:
So, let's say, purely for the sake of argument, that I have a function like: and I want to call it in this context: Perl won't let me because it thinks I'm trying to use &rv as the comparison function for sort. I could say: but that doesn't look as cool. This works: How do get perl to treat &rv the same way?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||