Perl Monk, Perl Meditation | |
PerlMonks |
Re: Challenge: prefix($x, $y) . suffix($x, $z) eq $xby shmem (Chancellor) |
on Apr 22, 2009 at 21:30 UTC ( [id://759417]=note: print w/replies, xml ) | Need Help?? |
Here's my straight forward solution, ungolfed... <Reveal this spoiler or all in this thread>
timed as
update: using Limbic~Region's name list I get
and replacing m// with index in sub suffix above
on a Pentium M 2.10GHz, perl 5.8.8 - What are your timings? What is "better"? Code readability, brevity, maintainability, performance? ;-)
In Section
Meditations
|
|