Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: code example from Audio::OSS doc fails?

by atanug (Initiate)
on Dec 16, 2010 at 12:09 UTC ( #877478=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://877478]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-11-20 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (284 votes). Check out past polls.

    Notices?