Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Perl parser gets confused with call to "sort" w/o parens

by BillKSmith (Parson)
on May 16, 2018 at 14:53 UTC ( #1214658=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl parser gets confused with call to "sort" w/o parens
in thread Perl parser gets confused with call to "sort" w/o parens

The paragraph that choroba cites, documents four acceptable ways to sort an array returned by a function. I think it is reasonable to assume that anything else is ambiguous and should be considered invalid. In this view, all of your cases are invalid. The fact that some of them appear to do what you intend is irrelevant. It would be helpful if the document explained the reason for this restriction.
Bill
  • Comment on Re^3: Perl parser gets confused with call to "sort" w/o parens

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2018-12-16 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (71 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!