Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Elderian's scratchpadby Elderian (Sexton) |
on Jun 30, 2004 at 11:57 UTC ( [id://370740]=scratchpad: print w/replies, xml ) | Need Help?? |
I wrote a wrapper script for a standalone application which relies on some configuration files. These are created by the perl script right befor the application is called. The application produced wrong results, because some of the configuration files were empty. The log showed that they were written correctly. Now i found the reason: The file seems to take its sweet time until it makes the newly created config files publicly available. If the application is called before that time period, it opens the config files, which are empty.... if i put a unless (-e $config_file_name) before the creation of the configuration file and wrap it up in a loop, it works. Have you experienced this phenomenon? |
|