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:
my $mp3 = <binary contents of an mp3 file already in memory>;
system("/path/ffmpeg -i <want to pass $mp3 here>");
I know ffmpeg can take an input argument like this (if this helps):
cat my.mp3 | ffmpeg -i pipe:0
Thanks for the help