Help for this page

Select Code to Download


  1. or download this
       perldoc -q STDERR
    
  2. or download this
    Found in C:\Perl\lib\pod\perlfaq8.pod
      How can I capture STDERR from an external command?
    ...
            $output = `cmd 2>&1`;           # either with backticks
            $pid = open(PH, "cmd 2>&1 |");  # or with an open pipe
            while (<PH>) { }                #    plus a read