Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

-w World of miracles

Quote Reply
-w World of miracles
Hi all, just this night i tried for the first time to start the scripts with -w and OH OH, there are millions and millions and millions of erros in my appache_log.

This is fine and gives me a way to improve my scripts - BUT:

What should i do when getting: Use of unitialized value a thousand times; the number for col is definitely wrong

(#) So how can i get the var name for the "unitialized ...", i have tried it with c - but this makes 12k code for an modify :-(

Robert

Quote Reply
Re: -w World of miracles In reply to
I'm not sure what you are asking, but on the perl site, there is a good manual on using -w (I saw it someplace), and it goes over what to do with the errors, and how to make perl happy. There are some 'odd' and seemingly meaningless constructs -- especially in constant declarations, that you need to use to get rid of the warnings.

But, warnings are just that -- warnings, and as long as you know why you are getting them, they don't cause a problem.

You can remove the -w from your 'production' code, and just use it when you are working on modifications.



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: -w World of miracles In reply to
Hehe, just this is my problem:

With -w i got a lot of error-messages, but they dont help me, when i dont get more information why i got the errors.
At the moment i comment our every line in my modify.cgi to find that call (to dbsql over html_template) that has no initialized vars.

Robert