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,
In reply to perl file handle share thread by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |