Perl Monk, Perl Meditation | |
PerlMonks |
Re: How can I avoid code repetition hereby bv (Friar) |
on Oct 07, 2009 at 16:24 UTC ( [id://799754]=note: print w/replies, xml ) | Need Help?? |
I'm not sure if this will help or hurt, but it seems to me that the more natural ordering of your arguments would be ($lchompstr, $optional_string_arg), since that would mirror the syntax of split, unpack, and others that act on $_ by default.
In Section
Seekers of Perl Wisdom
|
|