Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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);

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028540]
[virtualsue]: weird. my p6 simple web spider fails to extract anchor tags from
[holli]: Nice. Turns out I don't have to remove Sweet home Alabama from my playlist ;)
[Corion]: virtualsue: We have some links with a newline between <a and the attributes, maybe your extractor fails to handle that?
[virtualsue]: It's not getting any at all, which seems quite broken
virtualsue upgrades modules

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-12-13 11:54 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (360 votes). Check out past polls.