Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 scrutinizing the Monastery: (9)
As of 2014-11-26 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (163 votes), past polls