in reply to Regex returns match the first time. It returns everything thereafter
You're better off not using the flip-flop operator, but something like this might work:
for my $server (@ARGV) { print "getting cgrpfile from $server\n"; my @ssh = `ssh $server /bin/cat $usrallow `; for (@ssh, '') { if (/^custom/ .. /^\z/) { print; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex returns match the first time. It returns everything thereafter
by LanX (Saint) on Nov 16, 2013 at 00:40 UTC | |
by guitarplayer68 (Novice) on Nov 18, 2013 at 13:29 UTC | |
by aaron_baugher (Curate) on Nov 18, 2013 at 21:27 UTC |