Think about Loose Coupling | |
PerlMonks |
Re: Re: (Golf) Cryptographer's Tool #1by srawls (Friar) |
on Jun 20, 2001 at 02:17 UTC ( [id://89843]=note: print w/replies, xml ) | Need Help?? |
That doesn't work when 0 is in the 'alphabet.' Here's a modified solution that handles 0 properly, which is only 8 more char than yours: It adds the null character to each string, which shouldn't print on most machines (it does on my dos, not on my unix).
Update:Fixed code as per chipmunk's comment. It's 54 chars now. The 15 year old, freshman programmer,
In Section
Meditations
|
|