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.
In reply to Re^2: how to next line after the pattern in perl
by kennethk
in thread how to next line after the pattern in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |