My program compiled cleanly (when I used the -c option) but when I ran it from a command line, I got a TON of warning messages (I assume they were warnings, because it didn't stop the program from running) that were essentially due to my environment didn't have a number of environmental variables set that are normally set in a CGI environment.
Yes. A CGI environment has a lot of variables set that aren't usually present in a shell environment. Nothing to stop you setting them though.
So that is why I removed the 'using strict', to get away from those warning messages and see messages that were really run time failures, which I've seen happen. Errors that the compiler didn't catch, but they were caught at runtime.
Yes. Programs have compile-time errors and runtime errors. You need to use different tools to catch both of them. But you need to catch and eliminate both kinds of error.
So how do you propse to get around this problem?
Either learn to ignore the errors that are caused by the fact that you're not running in a CGI environment or set up your shell environment so that it looks like a CGI environment.
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In reply to Re^5: help with start_table of CGI.pm
by davorg
in thread help with start_table of CGI.pm
by kmullin5016
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |