Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^4: Win32API::File not setting HANDLE_FLAG_PROTECT_FROM_CLOSE (sources)

by Yary (Monk)
on Dec 05, 2012 at 13:20 UTC ( #1007287=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    #!/usr/bin/env perl
    use warnings;
    system '';
    print $fh "This is to fd $ENV{myfd} from the parent\n";
  2. or download this
    #!/usr/bin/env perl
    use warnings;
    print "Child opened FD $ENV{myfd}\n";
    my $p=print OUT "***\nHere is data going to fd $ENV{myfd}\n***\n";
    warn "return value of print=$p ($!)\n";
  3. or download this
    #!perl -w
    use strict;
    system '';
    print $fh "This is to fd $ENV{myfd} from the parent\n";
  4. or download this
    open OUT,">&=$ENV{myfd}" or die "cannot dup $ENV{myfd}: $!\n";
    print "Opened FD $ENV{myfd}\n";
    $x=print OUT "***\nHere is data to FD $ENV{myfd}\n***\n";
    warn "print=$x ($!)\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007287]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-10-22 12:13 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.