David Clarke wrote: > Hi, I have a string of text that is thousands of characters in > length. And I want to break it up into smaller records of say 500 or > 600 characters. Is there a Perl command to help to do this or am I > stuck with looping through the large input record and counting field > positions myself. > > Thanks all. Dav. > > Do you want just chunks of 500 or 600 bytes, or breaks at particular points along the way? If just junks, then you could use length, substr to get at the chunks. If a particular character or character string, then you could use a regex and parens to grab and process what you want.
Any questions and/or problems, please let me know. Thanks. Wags ;) Int: 9-8-002-2224 Ext: 408-323-4225x2224 ******************************************************* This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ******************************************************* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>