Hi Paul, I has tried the $/ = ""; but it did not work because my logfile itself was faulty. The problem is that between two paragraphs, the empty line does not match /^\n$/ but it matches some spaces too i.e. /^\s*\n$/.
Probably that is the reason it fails. I guess. but I cant give any regex for $/ currently I am making record by running in a loop. Do you feel that I am missing something silly. Regards Rajeev -----Original Message----- From: Paul Johnson [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 5:42 PM To: Pandey Rajeev-A19514 Cc: [EMAIL PROTECTED] Subject: Re: Problem with input record separator 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]