in reply to Re: Perl script to print Next line after Pattern Matching
in thread Perl script to print Next line after Pattern Matching
Also quick'n'dirty:
use strict; use warnings; @ARGV = <*.doc>; while ( <> ) { print scalar <> if /^Customer ID: Yes/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl script to print Next line after Pattern Matching
by Anonymous Monk on Dec 21, 2011 at 04:04 UTC | |
by Anonymous Monk on Dec 21, 2011 at 15:12 UTC |