Help for this page

Select Code to Download


  1. or download this
    use Fcntl;
    my $flags = fcntl $in, F_GETFD, 0 or die "fcntl F_GETFD: $!";
    fcntl $in, F_SETFD, $flags & ~FD_CLOEXEC or die "fcntl F_SETFD: $!";
    
  2. or download this
    This is perl 5, version 18, subversion 1 (v5.18.1) built for MSWin32-x
    +64-multi-thread
    
  3. or download this
    #!/usr/bin/perl
    use v5.14;
    ...
        exec( 'perl', './fd_get.pl', $fd )
            or die "Could not exec: $!\n";
    }
    
  4. or download this
    #!/usr/bin/perl
    use v5.14;
    ...
    }
    
    close $in;