in reply to How to stop printing the output of a command on screen when the command fails?
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to stop printing the output of a command on screen when the command fails?
by perl_mystery (Beadle) on Dec 24, 2010 at 06:26 UTC | |
by GrandFather (Saint) on Dec 24, 2010 at 07:16 UTC | |
by perl_mystery (Beadle) on Dec 24, 2010 at 07:34 UTC | |
by zentara (Cardinal) on Dec 24, 2010 at 16:03 UTC | |
by perl_mystery (Beadle) on Dec 24, 2010 at 18:38 UTC | |
| |
by perl_mystery (Beadle) on Dec 24, 2010 at 18:42 UTC |