Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: CGI Configuration Woes (was: newbie alert)

by Hero Zzyzzx (Curate)
on Jun 19, 2001 at 00:21 UTC ( #89432=note: print w/ replies, xml ) Need Help??


in reply to CGI Configuration Woes (was: newbie alert)

Well, here's a problem that's a likely culprit:

You're using strict, GOOD! Keep it in there.

However, your $query variable isn't declared as a global or with "my" (preferred).

Change the line $query = new CGI; to my $query= new CGI; and you've fixed this variable so it can run correctly under strict.

You should declare variables with "my" when you're using strict, which, of course, you're always doing : )

Here's a great node on scoping.


Comment on Re: CGI Configuration Woes (was: newbie alert)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2015-07-31 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls