Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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:

1.52590218966964e-05\rnobody:x:65534:65534:nobody:/nonexistent:/bin/sh

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
Re^3: Golf: reverse sort /etc/passwd by UID
by choroba (Abbot) on Feb 07, 2013 at 10:35 UTC
    OK, just change 1/ to 9/ (or 8 or 7). Updated.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2014-07-28 16:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls