IPC-Run icon indicating copy to clipboard operation
IPC-Run copied to clipboard

Allow ordinary scalar for 'pipe' [rt.cpan.org #83000]

Open toddr opened this issue 8 years ago • 2 comments
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.

toddr avatar May 12 '17 12:05 toddr

Thanks - this was me

epa avatar May 12 '17 12:05 epa

I'm all for this but it's an enhancement and I'm not actively developing on IPC::Run at this time. Patches welcome.

toddr avatar Mar 27 '18 00:03 toddr