Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2015-10-09 22:36 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (253 votes), past polls