1 #!./perl -- # Perl Rules
5 print "1..0 # Skip: needs porting, perhaps imitating Win32 mechanisms\n";
8 require "../../t/test.pl";
20 switches => ['-MIPC::Open3', '-w'],
21 prog => "open STDIN, q _${file}_ or die \$!; open3(q _<&0_, my \$out, undef, \$ENV{PERLEXE}, q _-e0_)",
26 "dup STDOUT in a child process by using its file descriptor";
30 my $want = qr{\A#!\./perl -- # Perl Rules\r?\z};
31 open my $fh, '<', $file or die "Can't open $file: $!";
34 like($have, $want, 'We can find our test string');
37 fresh_perl_like(<<"EOP",
39 open FOO, '<', '$file' or die \$!;
40 open3('<&' . fileno FOO, my \$out, undef, \$ENV{PERLEXE}, '-eprint scalar <STDIN>');
45 'Numeric file handles are duplicated correctly'