Which is why I generally prefer the approach of using a flag
use strict; use warnings; my $flag = 0; while (<DATA>) { if ($flag) { # print parts of $_ as necessary } $flag = /Ingress PSP/; }
In reply to Re^2: Search for a string in a file and get the string in the next line
by moritz
in thread Search for a string in a file and get the string in the next line
by Kadam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |