Help for this page

Select Code to Download


  1. or download this
    
    # this would try to re-use STDERR's file descriptor 2,
    ...
    close STDERR;
    open STDERR, ">", \$variable or die $!;
    printf "fd=%d\n", fileno(STDERR);   # -1  (not accessible from system(
    +)'s child process!)