in reply to How to debug "Too Many Open Files" Error
Maybe you could also check your code for pieces like this:
open HANDLE, $filename;
Where a glob (HANDLE) is used as a file handle, instead of a lexical variable:
open my $handle, $filename;
With the latter the files are automatically closed when $handle goes out of scope, so a forgotten close does much less harm.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to debug "Too Many Open Files" Error
by BrowserUk (Patriarch) on Sep 16, 2008 at 22:29 UTC | |
by moritz (Cardinal) on Sep 16, 2008 at 22:39 UTC | |
|
Re^2: How to debug "Too Many Open Files" Error
by tonyb48 (Novice) on Sep 16, 2008 at 22:53 UTC | |
by moritz (Cardinal) on Sep 16, 2008 at 22:58 UTC | |
by kubrat (Scribe) on Sep 17, 2008 at 15:15 UTC |