in reply to Re: How to stop printing the output of a command on screen when the command fails?
in thread How to stop printing the output of a command on screen when the command fails?
Roboticus,your suggesting doesnt seem to working,why is it so?
foreach my $file (@changed_files) { my $p4where_output=`p4 where $file 2>&1`; print "P4 where output:$p4where_output\n"; if($p4where_output =~ /file(s) not in client view/) { push @changed_paths,"$file\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to stop printing the output of a command on screen when the command fails?
by cdarke (Prior) on Dec 24, 2010 at 12:12 UTC | |
by perl_mystery (Beadle) on Dec 25, 2010 at 01:48 UTC | |
by cdarke (Prior) on Dec 26, 2010 at 09:30 UTC |