|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Golf: reverse sort /etc/passwd by UIDby tobyink (Prior) |
| on Feb 06, 2013 at 10:23 UTC ( #1017376=note: print w/ replies, xml ) | Need Help?? |
|
OK, using salva's wonderful Sort::Key, I can go five characters shorter...
If you don't mind a spurious blank line at the end of the output, then it's easy to drop another two characters...
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Meditations
|
|
||||||||||||||||||||