IPC-Run
IPC-Run copied to clipboard
Allow ordinary scalar for 'pipe' [rt.cpan.org #83000]
trafficstars
Migrated from rt.cpan.org#83000 (status was 'new')
Requestors:
From [email protected] on 2013-01-28 11:28:12:
In recent perl versions you can use an ordinary scalar in open(), as:
open my $fh, '<', 'file' or die;
You no longer have to use bareword filehandles or get involved with the details of taking glob references *FH.
It would be good if the 'pipe' mode of IPC::Run allowed the same convenience:
my $child_out;
start \@cmd, '<', '/dev/null', '>pipe', \$child_out, '2>', '/dev/null';
At the moment this gives 'Not a GLOB reference' from inside IPC::Run::IO.
Thanks - this was me
I'm all for this but it's an enhancement and I'm not actively developing on IPC::Run at this time. Patches welcome.