![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Decompose a String into Tuples (Faster and Compact Way)by Tortue (Scribe) |
on Oct 12, 2005 at 19:57 UTC ( #499659=note: print w/replies, xml ) | Need Help?? |
(Um, for the above to do what the op wants, I think you need something like push @ret, "@_[$i..$i+2]"; instead of push @ret, [$_[$i], $_[$i+1], $_[$i+2]];)
Here's my shifty suggestion: update: shorter and generalizable to producing any size tuple:
In Section
Seekers of Perl Wisdom
|
|