in reply to Re^2: Parse a block of text
in thread Parse a block of text
my ($file, $start, $stop) = @ARGV; $start = qr/^$start/; $stop = qr/^$stop/; open(my $fh, "<", $file) or die "Err: $!"; while(<$fh>) { if ( my $status = /$start/.../$stop/ ) { print unless $status =~ /E/; } } close $fh;
|
|---|