Bowen, Bruce wrote: > I have a text file with lines of varying length. Most text files are like that.
> 000,;,001,WL0,001,001,000,000,000,000 > 011,@D > ,011,000,001,050,050,105,105,004,004,064,255,000,001,116,255,255,255,106,255,255,255,255,116,255,255,255 > 012,D,038,032,000,002,000,001,000,000 > 013,@D > ,013,000,001,050,050,105,105,004,004,064,255,000,001,091,255,255,255,106,255,255,255,255,091,255,255,255 > > According to a hex editor each line ends with a hex 0D 0A. Then set the Input Record Separator to OD OA $/ = "\x0D\x0A"; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>