Subject: | exec piped open() fails under autodie |
The following script works fine under 5.8, 5.10 and prints "foo bar":
use strict;
use warnings;
open my $fh, "-|", 'echo', 'foo', 'bar';
print <$fh>;
But add autodie:
use strict;
use warnings;
use autodie;
open my $fh, "-|", 'echo', 'foo', 'bar';
print <$fh>;
... and it fails with:
Use of uninitialized value $_[0] in join or string at (eval 19) line 120.
Internal error: open(, -|, echo, foo, bar): Do not expect to get 5
arguments at (eval 19) line 120.