Rodster001 has asked for the wisdom of the Perl Monks concerning the following question:
Forgive me if this is been asked before, I cannot find the answer and can't quite figure it out myself.
I have an in memory scalar and I want to pass that to an external program in a system command as an argument (instead of first writing a file and then calling the command).
For example:
I know ffmpeg can take an input argument like this (if this helps):my $mp3 = <binary contents of an mp3 file already in memory>; system("/path/ffmpeg -i <want to pass $mp3 here>");
Thanks for the helpcat my.mp3 | ffmpeg -i pipe:0
|
|---|