Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: A "strange" behaviour, at least to me :)

by ikegami (Pope)
on Apr 13, 2013 at 17:36 UTC ( #1028540=note: print w/ replies, xml ) Need Help??

in reply to Re: A "strange" behaviour, at least to me :)
in thread A "strange" behaviour, at least to me :)

@values = sort {},arraynosort(Values=>\@orig_values);
passes a hash ref to sort. You meant
@values = sort { $a cmp $b } arraynosort(Values=>\@orig_values);

By the way, the least invasive solution is:

@values = sort +arraynosort(Values=>\@orig_values);

Comment on Re^2: A "strange" behaviour, at least to me :)
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2016-02-09 19:05 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (323 votes), past polls