Help for this page

Select Code to Download


  1. or download this
    close(STDIN);
    close(STDERR);
    open(STDERR, ">/tmp/foo");
    print fileno(STDERR), "\n";  # prints 0