Any help?open (FILE, '<', '123.log') or die "Could not 123.log: $!"; my $i=0; while (<FILE>) { #print $_ if (/^[==========]/ .. /^tests./); if (/^[0-9] tests from [0-9] test cases ran/ .. /^[0-9] tests\./){ print "$i.Match Found:".$_."\n"; $i++; } }
In reply to Re^3: Parsing a text file in Perl.
by ramki067
in thread Parsing a text file in Perl.
by ramki067
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |