Perl Monk, Perl Meditation | |
PerlMonks |
Re: spliting a lengthy textby themage (Friar) |
on Nov 27, 2006 at 10:26 UTC ( [id://586220]=note: print w/replies, xml ) | Need Help?? |
Hi sanku,
I think that this code does what you need: The code assumes that the original string comes from STDIN and the final strings goes to STDOUT. I presume you'll have no problem adapting it to your real needs.
TheMage http://themage.bliker.com
In Section
Seekers of Perl Wisdom
|
|