Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Sorting result of function call

by ysth (Canon)
on Dec 20, 2006 at 10:52 UTC ( #590884=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Sorting result of function call
in thread Sorting result of function call

There's no way for perl to perfectly satisfy here: sort subname LIST is clearly documented as using subname as the comparator in sorting LIST, and making the the optional whitespace before the '(' around a list become required would be unfortunate. But that leads to sort subname() not being interpreted as you intended. If you can train yourself to always use & on a sub call producing a list to be sorted, you'll be well off.


Comment on Re^4: Sorting result of function call
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-12-22 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (116 votes), past polls