in reply to "Too Many Files Open" problem
THANK YOU ALL!
I've simplified the code greatly. See below. After 2045 files I get this:
WAV/j_Wah.wav: unable to open file (Too many open files)
I used the 'handle' program and indeed the read files are staying open. Any thoughts? Thanks!
use Audio::Wav; my @wavs = glob ("WAV\/*.wav"); while (1) { for my $wav (@wavs) { print "$wav\n"; my $readwav = new Audio::Wav; my $read = $readwav -> read( "$wav" ); my $src_details = $read -> details(); $readwav = undef; $read = undef; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "Too Many Files Open" problem
by Anonymous Monk on Jan 07, 2012 at 08:14 UTC | |
by Anonymous Monk on Jan 07, 2012 at 15:58 UTC |