http://www.perlmonks.org?node_id=877478


in reply to code example from Audio::OSS doc fails?

Try this one. This should work.

use IO::Handle; $io = new IO::Handle; open FILE, "</dev/dsp"; if ($io->fdopen(fileno(FILE),"r")) { print $io->getline; $io->close; } else { print "Error\n"; } close FILE;