![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Splitting a long stringby dug (Chaplain) |
on Aug 22, 2007 at 10:51 UTC ( #634303=note: print w/replies, xml ) | Need Help?? |
Another way to do this is to treat your data as an "in memory" file (see perldoc -f open). Setting the INPUT_RECORD_SEPARATOR variable to a reference to an integer will make the readline operator read that many bytes, or as many as it can until EOF. Putting that all together gives us: -- Douglas Hunter
In Section
Seekers of Perl Wisdom
|
|