exilepanda has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
It happens to me that when I program CGI scripts with frames or iframes, it throws 500 error by random time; however, if I reload that single frame again, it works normally. I checked the log, and it logged sort of module load fail records. I perceive that's kind of upper network connection limit from my WinXP-Pro, or some flock states triggers these errors.
Anyway, I am looking for if there's anyway I can do something like this :
Since I know the use statement is run first then everything else, so this code won't work. But is that anything else I can do about it? </code>eval { use stict; use warnings; use This; use That; }; while ( $@ ) { eval { use stict; use warnings; use This; use That; } } # rest of my code in main
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can I retry "use" when module load fails?
by Athanasius (Archbishop) on Apr 15, 2013 at 04:02 UTC | |
by exilepanda (Friar) on Apr 15, 2013 at 04:52 UTC | |
by NetWallah (Canon) on Apr 15, 2013 at 05:42 UTC | |
by exilepanda (Friar) on Apr 15, 2013 at 06:15 UTC | |
by NetWallah (Canon) on Apr 15, 2013 at 06:47 UTC | |
|
Back to
Seekers of Perl Wisdom