Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2015-10-07 17:53 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (194 votes), past polls