|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Golfing password creationby moritz (Cardinal) |
| on Jul 29, 2009 at 06:36 UTC ( [id://784139] : note . print w/replies, xml ) | Need Help?? |
|
Without changing your algorithm in any way, you can gain a few characters by removing unnecessary quotes, and substituting $o with $_. Since say and length both default to $_ the change of the variable removes four extra characters.
And here's a completely non-golfed Perl 6 version that's even shorter:
On my Linux box this is even shorter:
But I guess not using Perl in a golfing challenge is cheating ;-)
In Section
Meditations
|
|
||||||||||||||||||||||