Do you know where your variables are? | |
PerlMonks |
Re^4: Golf: reverse sort /etc/passwd by UIDby Tommy (Chaplain) |
on Feb 05, 2013 at 20:26 UTC ( [id://1017274]=note: print w/replies, xml ) | Need Help?? |
NOTE- remember you have to omit the typos though, as I already pointed out. So far, the winner remains: UPDATE: thundergnat is right that the code below DOESN'T work as intended perl -e 'print reverse sort{/(:\d+:)/<=>/(:\d+:)/}<>' /etc/passwd
Tommy A mistake can be valuable or costly, depending on how faithfully you pursue correction
In Section
Meditations
|
|