Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: WHy error message is printed in STDOUT?

by Albannach (Prior)
on Apr 12, 2006 at 14:05 UTC ( #542845=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $cmd = 'del nonexistent.file'; 
    chomp($res = `$cmd 2>&1`);
    print "\n[Command is :: ", $cmd, "]\n[RESULT:: ", $res,"]\n\n";
    
  2. or download this
    [Command is :: del nonexistent.file]
    [RESULT:: Could Not Find C:\My Documents\foo\Perl\dl\debug\nonexistent
    +.file]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://542845]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-10-22 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (271 votes). Check out past polls.

    Notices?