There's more than one way to do things | |
PerlMonks |
Re: splice an arrayby LanX (Saint) |
on May 03, 2011 at 22:06 UTC ( [id://902771]=note: print w/replies, xml ) | Need Help?? |
(I'm not sure if I really understood your problem...) what about creating a new array instead of slicing?
(untested) HTH UPDATE: Generally it's better to use an iterator that returns separated records. Have a look at the "alternativ iterator" Re^2: reading several lines in a gulp (iterator) and change the last condition to split at /^=====================/
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|