(or simply print scalar(<FILE>);)while (<FILE>){ if (/text to check for/){ my $nextline = <FILE>; print $nextline; } }
In reply to Re: Getting next line after matched one
by Eimi Metamorphoumai
in thread Getting next line after matched one
by ramthen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |