Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: I wrote some clever code - can the comment "defuse" it? (stab at restructuring)by dws (Chancellor) |
on Jun 17, 2003 at 23:09 UTC ( [id://266675]=note: print w/replies, xml ) | Need Help?? |
I think the following is much clearer.
Saving the run lengths in a temporary does help readability. The only nit I have with the otherwise good updated version is that it destroys @letter from within an expression. In this case, it's what you want, but it risks a "Hey, what happened to my letters?!?" if someone else tries to reuse the snippet later.
In Section
Seekers of Perl Wisdom
|
|