Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
This solution uses the same approach as merlyn's, translating the words so they can be compared directly. It assumes that the words will not contain the null character.
96 characters. BTW, although %k is not lexicalized to the sub, I don't think it matters, since any leftover contents which are not overwritten won't be used. (Also assume that no other characters are present in the words.) Update: I added /s to both substitutions, to avoid problems with \n. Thanks tilly! In reply to Re: Golf: Arbitrary Alphabetical Sorting
by chipmunk
|
|