# Redirect output from STDERR to STDOUT $out = `sox ... 2>&1` #### { # Temporarily alias STDERR to STDOUT. local *STDERR = *STDOUT; $out = `sox blah.wav -e stat`; } print $out;