![]() |
|
"be consistent" | |
PerlMonks |
Re: rearranging a string.newby VSarkiss (Monsignor) |
on Nov 21, 2005 at 20:48 UTC ( #510555=note: print w/replies, xml ) | Need Help?? |
The other responses in this thread are addressing your problem directly, but I wanted to point out an alternative. In general, fixed-length string decomposition is easiest with unpack (and if necessary, its companion pack). Your particular example can be accomplished with: Golf anyone? :-)
In Section
Seekers of Perl Wisdom
|
|