Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
in my program i use few threads parallel (use threads). For all the threads i uses one error log file (or one debug file), which is closed and open at the midnight by one of the threads (always the same thread).
I read a bit how to share files between functions and some other documents, since i am a beginner in perl it was hard for me to understand them and to know if those are useful articles for my problem or not.
My question is how could i tell the other thread to "update" the pointer to the error log file after i close it and open new file in one of the threads.
Regards,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl file handle share thread
by BrowserUk (Patriarch) on May 20, 2010 at 15:30 UTC | |
by Anonymous Monk on May 20, 2010 at 21:59 UTC | |
by BrowserUk (Patriarch) on May 20, 2010 at 23:19 UTC |