Help for this page

Select Code to Download


  1. or download this
    use POSIX qw(dup);
    use FileHandle ();
    ...
    $fh->fdopen($fd,'w');
    
    print "Um... Yah\n";
    
  2. or download this
    my $fh - FileHandle->new();
    $fh->fdopen(dup(fileno(STDOUT)),'w');