Help for this page

Select Code to Download


  1. or download this
    C:\Perl\bin\Perl.exe C:\Perl-examples\example.pl 2> C:\Perl-examples\e
    +xample.log
    
  2. or download this
      use IO::Capture::Stderr;
      my $capture = IO::Capture::Stderr->new();
    ...
        print "$_" for @err;   # print stderr to screen
        <STDIN>;               # wait for input
      }