Although i don't necessarily consider myself one of the "smarter people
here", i can give you some advice.  ;)

I assume your script is a CGI and you're calling it through some sort of
browser ... ?  Try running it independently of the browser.  Most likely it
will tell you about a some variables you didn't predeclare.

Once you know what those variables are, you can predeclare them in two ways
(that i know of).  One is to say 'my $var' at the first instance of each
'$var'.  The other is to put 'use vars qw/$var1 $var2 .../;' at the
beginning of your script, where '$var1 $var2 ...' are the variables.

HTH!
- christopher

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 2:50 PM
To: [EMAIL PROTECTED]; 
Subject: RE: stupid question (Use strict)


it's a pragma.
It forces explicit declaration of variables, among other things.

One of the smarter people here can tell you the exact details of it.


-----Original Message-----
From: Tom Malone [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:42 PM
To: Perl List
Subject: RE: stupid question


Can someone tell me what "use strict;" means? Someone told me to use it, but
I don't know what it means and it (in combination with something else I did,
I'm sure) is causing a 500 internal server error in my very simple script

Thanks
Tom

-----Original Message-----
From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 12:59 AM
To: [EMAIL PROTECTED]; Mark Saunders
Subject: Re: stupid question


>>>>> "Mark" == Mark Saunders <[EMAIL PROTECTED]> writes:

Mark> print "Content-type:text/html\n\n";

You're missing a space.  "Content-type: text/html\n\n"


--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to