Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 about the Monastery: (12)
As of 2015-04-27 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (507 votes), past polls