in reply to Re^3: Golf: reverse sort /etc/passwd by UID
in thread Golf: reverse sort /etc/passwd by UID
No, unfortunately that doesn't work either. A regex match in scalar context returns 1 or 0. It needs to be called in list context to return the value.
>perl -E"print 'foo'=~/(o+)/;" oo
>perl -E"print scalar 'foo'=~/(o+)/;" 1
|
---|
In Section
Meditations