$p4where_output =~ /file(s) not in client view/ probably is not doing what you think. The (s) matches and captures an 's' so the string matched is 'files not in client view' as I suspect you expect. More likely the regex you want is /files\(s\) not in client view/ to match the brackets. In fact it looks like you simply need a string match so you could: $p4where_output eq 'file(s) not in client view' instead.
In reply to Re: How to stop printing the output of a command on screen when the command fails?
by GrandFather
in thread How to stop printing the output of a command on screen when the command fails?
by perl_mystery
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |