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

Thanks for the reply :-)

If I do that, I get this:
usage: new IO::Handle at a.pl line 4

If I then do this:

use IO::Handle; use Audio::OSS qw(:funcs :formats :mixer); my $dsp = new IO::Handle("</dev/dsp") or die "open failed: $!";
I get the same error.

Replies are listed 'Best First'.
Re^3: code example from Audio::OSS doc fails?
by johna (Monk) on Dec 15, 2010 at 21:38 UTC
    Maybe try changing IO::Handle to IO::File.
      Thanks, johna -- much appreciated!