punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
I have a long script that retrieves data from a Mysql DB of user data then outputs it to browser using Template Toolkit. Everything works fine most of the time, but I came across one user record for which the script hangs, then times out to a 'misconfiguration' error. I telnet the db and see this record has some info few others have - maybe it's a data format problem or something like that.
So to the top of my script I add:
Suddenly the script runs perfectly for the user record in question, and no errors are output. Nada.BEGIN { use CGI::Carp qw(carpout); carpout(STDOUT); }
Any general ideas on what kind of effect having this snippet in there has that it would have this effect?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Carpout makes script run, but outputs no errors?
by moritz (Cardinal) on Sep 22, 2008 at 22:08 UTC | |
|
Re: Carpout makes script run, but outputs no errors?
by punch_card_don (Curate) on Sep 23, 2008 at 14:27 UTC | |
by moritz (Cardinal) on Sep 23, 2008 at 15:06 UTC | |
|
Re: Carpout makes script run, but outputs no errors?
by Anonymous Monk on Sep 23, 2008 at 09:29 UTC |