for (1 .. 4) { my $following = <DATA>; print $following; }
like this
print scalar <DATA> for 1 .. 4;
It just looks a little cleaner to me.
Cheers,
JohnGG
In reply to Re^2: Print 4 Lines below matching criteria
by johngg
in thread Print 4 Lines below matching criteria
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |