On Sun, Sep 21, 2003 at 04:11:30PM +0530, Pandey Rajeev-A19514 wrote: > I am stuck with input record separator
You are correct that you should be changing the IRS ... > I have a file .. say "abc" > > *********************************************** > AAAAAAAAAAAAAAAA > AAAAAAAAAAAAAAAA > AAAAAAAAAAAAAAAA > > BBBBBBBBBBBBBBBB > BBBBBBBBBBBBBBBB > BBBBBBBBBBBBBBBB > > CCCCCCCCCCCCCCCC > CCCCCCCCCCCCCCCC > > *********************************************** > > I read the file in @lines. > open(IN, "abc); > @lines = <IN>; ... but you haven't done so. Set $/ = ""; before reading the file to read it in paragraph mode. Or run with perl -00 ... perldoc perlvar for more info on $/ perlvar perlrun for more info 0n -00 -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]