Subject: | run3() should use three argument variant of open() |
This receent CPAN annotation exposes a bug:
http://annocpan.org/~RJBS/IPC-Run3-0.039/lib/IPC/Run3.pm#note_1755
You can append to file "foo.txt" by calling (note the right angle bracket):
run3 [ qw(some program) ], \undef, ">foo.txt";
That's because in this use case, run3() blindly uses the
$name of the file to receive stdout as
open FH, ">$name"
It should rather use
open FH, ">", $name
Note: That could break compatibility with older Perls that
didn't have this three arguemtn open(). I checked as early as 5.6.0
and that should be OK.