in reply to Re^2: Passing an in memory scalar to an external command as an argument
in thread Passing an in memory scalar to an external command as an argument

I like that solution. But I need to capture stdout also (so I am actually using open2 for this). Can I write and read using IO::Pipe? The docs look like it is one or the other.
  • Comment on Re^3: Passing an in memory scalar to an external command as an argument

Replies are listed 'Best First'.
Re^4: Passing an in memory scalar to an external command as an argument
by RonW (Parson) on Apr 08, 2015 at 23:14 UTC

    It is possible, but open2 is easier:

    $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'ffmpeg', '-i', 'pipe:0');