use strict; use warnings; for my $file (<*.doc>) { open my $fh, "<", $file or die $!; while (<$fh>) { print scalar <$fh> if /^Customer ID: Yes/; } }
mr.nick ...
In reply to Re: Perl script to print Next line after Pattern Matching
by mr.nick
in thread Perl script to print Next line after Pattern Matching
by rajkrishna89
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |