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.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ