Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^9: perllocale weirdness, bug, or...?

by choroba (Canon)
on Oct 22, 2010 at 12:33 UTC ( #866798=note: print w/ replies, xml ) Need Help??

in reply to Re^8: perllocale weirdness, bug, or...?
in thread perllocale weirdness, bug, or...?

Looks like two level sort: on the first level, it ignores the _, but if the strings are different only thanks to the underscore, it is used in the second level.

$ echo $'a_2\t2\na2\t1' | sort -k1 a2 1 a_2 2 $ echo $'a_2\t2\na2\t1' | sort -k1,1 a2 1 a_2 2 $ echo $'a2\t2\na_2\t1' | sort -k1,1 a2 2 a_2 1 $ echo $'a2\t2\na_2\t1' | sort -k1 a_2 1 a2 2

Comment on Re^9: perllocale weirdness, bug, or...?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-11-28 01:47 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls