Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Golf: reverse sort /etc/passwd by UID

by tobyink (Abbot)
on Feb 06, 2013 at 22:11 UTC ( #1017513=note: print w/ replies, xml ) Need Help??

in reply to Re: Golf: reverse sort /etc/passwd by UID
in thread Golf: reverse sort /etc/passwd by UID

Nice, but one of the lines in my /etc/passwd file comes out as:


And thus gets sorted after root.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Comment on Re^2: Golf: reverse sort /etc/passwd by UID
Download Code
Replies are listed 'Best First'.
Re^3: Golf: reverse sort /etc/passwd by UID
by choroba (Canon) on Feb 07, 2013 at 10:35 UTC
    OK, just change 1/ to 9/ (or 8 or 7). Updated.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-11-29 15:58 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 (751 votes), past polls