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; } } }
In reply to Re: Regex returns match the first time. It returns everything thereafter
by Anonymous Monk
in thread Regex returns match the first time. It returns everything thereafter
by guitarplayer68
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |