my $mp3 = <binary contents of an mp3 file already in memory>; $pid = open(PLAY, "| ffmpeg -i pipe:0") or die "Couldn't fork: $!\n"; print PLAY $mp3; close(PLAY) or die "Couldn't close: $!\n";
In reply to Re: Passing an in memory scalar to an external command as an argument
by pme
in thread Passing an in memory scalar to an external command as an argument
by Rodster001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |