Something like this should work:
my $found=0; print grep { $found or ( /line/ and $found=1 )} @ssh;
Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.
In reply to Re^4: Regex returns match the first time. It returns everything thereafter
by aaron_baugher
in thread Regex returns match the first time. It returns everything thereafter
by guitarplayer68
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |