Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The reason why I want to have a blank line after the exception is to separate the exceptions in LOGFILE. Thanks!open (DIFFR, "javaex.log"); while (<DIFFR>) { $line=$_; #read first line if ($line =~ /at / || $line =~ /xception/) { chomp $line; print LOGFILE "$line,\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding a blank line after last line of match
by ikegami (Patriarch) on Jan 27, 2005 at 18:21 UTC | |
|
Re: Adding a blank line after last line of match
by holli (Abbot) on Jan 27, 2005 at 19:47 UTC |