in reply to Strange behavior with STDIN
it occurs to me this might have nothing to do with STDIN but how I'm assigning the .mp3 extension. Though I've tried various ways to do that too, including:
my $newfile = $str . ".mp3"; [download]