in reply to Re: how to next line after the pattern in perl
in thread how to next line after the pattern in perl
use strict; use warnings; my $flag = 0; while (<DATA>) { print if $flag; $flag = /XXXX/; } __DATA__ ZZZZZZZZZZZZ YYYYY XXXX XX XXXX 3333 ii XXXX asdfddd
Correct, but fundamentally a repeat of Re: how to print next line after the pattern in perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to next line after the pattern in perl
by ww (Archbishop) on Jun 09, 2010 at 19:41 UTC | |
by kennethk (Abbot) on Jun 09, 2010 at 20:03 UTC |