in reply to Re: Parsing a text file in Perl.
in thread Parsing a text file in Perl.
open (FILE, '<', '123.log') or die "Could not open 123.log: $!"; while (<FILE>) { #print $_ if (/^[==========]/ .. /^tests.../); if (/^[==========]/ .. /^tests.../){ print "Line Found:".$_."\n"; } } close (FILE) or die "Could not close 123.log: $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parsing a text file in Perl.
by Athanasius (Archbishop) on May 26, 2014 at 11:11 UTC | |
|
Re^3: Parsing a text file in Perl.
by ramki067 (Acolyte) on May 26, 2014 at 11:07 UTC |