in reply to How can I avoid code repetition here
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.
| print pack("A25",pack("V*",map{1919242272+$_}(34481450,-49737472,6228,0,-285028276,6979,-1380265972))) |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I avoid code repetition here
by rovf (Priest) on Oct 08, 2009 at 09:41 UTC |