Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: unwanted error messages appearing :-)

by LaidBackWebSage (Acolyte)
on Feb 25, 2004 at 20:17 UTC ( #331796=note: print w/ replies, xml ) Need Help??


in reply to unwanted error messages appearing :-)

I found the cause and the solution. (Yay, me!)

While debugging the script, I used the "use warnings" and "use diagnostics" pragmas. Later on I took them out of the code, but they remained latent in mod_perl, which is why the appearance of the error messages confused me.

I restarted the Apache server and voila! same script, no more error messages.

Do I get extra points for solving my own problem? :-)


Comment on Re: unwanted error messages appearing :-)
Re: Re: unwanted error messages appearing :-)
by revdiablo (Prior) on Feb 25, 2004 at 21:47 UTC
    Do I get extra points for solving my own problem?

    Yes, you do. But the true solution to your problem is to clean up the code to eliminate the warnings, rather than just hiding them. What you did is referred to as treating the symptom, rather than fixing the cause. Previous posts have given you clues how to fix the cause of the warnings; I would suggest following their advice. 8^)

Re: unwanted error messages appearing :-)
by b10m (Vicar) on Feb 25, 2004 at 21:51 UTC
    Do I get extra points for solving my own problem? :-)

    No, because monks have put time in reading your problem, suggesting possible sollutions (and hey, you had two "right" answers before you solved this "yourself") and because you have lied: "Running the same script on all three servers" So no, no points for you ;)

    --
    b10m

    All code is usually tested, but rarely trusted.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://331796]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-09-19 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (141 votes), past polls