in reply to Re: Search for a string in a file and get the string in the next line
in thread Search for a string in a file and get the string in the next line
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/; }
|
|---|