Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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.

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 musing on the Monastery: (6)
As of 2016-10-01 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (576 votes). Check out past polls.