You said: "the Perl reports about error." What did 'the Perl' actually say? With out the error message, I am guessing in the dark here.
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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.