in reply to Troubles with descriptors
If you are running out of file-descriptors (which is how I interpret your question), are you closing the @adress file handle after you are done with the mailbox? If not, I can easily see how you are running up against the file-descriptor limit. (This is one of the classical examples of a 'memory leak', acquiring a resource but not returning it.) But, with out the actual error message, this is just hypothesis in vacuuo
Also, while I commend your use of the three argument open(), I have to fault your assumption that the open can't ever fail. Try this construct instead:
open $adress, ">", "$adress.mailbox" or die("Can't open $adress.mailbo +x -- $!\n");
----
I Go Back to Sleep, Now.
OGB
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Troubles with descriptors
by Artimus (Sexton) on May 12, 2013 at 21:49 UTC | |
by Laurent_R (Canon) on May 12, 2013 at 22:36 UTC | |
by choroba (Cardinal) on May 13, 2013 at 07:31 UTC |