Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: A Better Guten Splitby ikegami (Patriarch) |
on Dec 01, 2009 at 00:35 UTC ( [id://810292]=note: print w/replies, xml ) | Need Help?? |
I guess we can start by getting rid of the useless variable and shorten the silly pattern.
Two lines to calculate and one line to assemble. I don't think length is really a problem here. We're dealing with readability issues if we try to shorten it any more. These are just too complicated:
I'm partial to this *longer* version:
The flow is very simple, so it's easy to understand.
In Section
Seekers of Perl Wisdom
|
|