> -----Original Message-----
> From: Colby [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: What is the source of the error (listed below, 
> its lengthy)
> 
> 
> On Wed, 2001-12-19 at 13:51, Bob Showalter wrote:
>     This warning is caused by the space between "print" and the
>     opening paren. You can suppress the warning by writing:
>     
>        print( qq|         # note no space after print
>     
>     instead of
>     
>        print ( qq|
>     
> Okay, I took out the extra space ...
> 
>     > Use of uninitialized value in concatenation (.) or string at 
>     > ./index.pl
>     > line 10.
>     > Use of uninitialized value in concatenation (.) or string at 
>     > ./index.pl
>     > line 10.
>     
>     You are interpolating some variables that have an undef
>     value. The line 10 refers just to the start of the string;
>     the actual variables are down inside the qq|| block somewhere.
>     
> The supposedly undef variables are $ENV[REMOTE_HOST} and
> $ENV{REMOTE_ADDR}
> I changed them to defined variables (at beginning of code, 
> with new CGI
> statement):
> my $raddr = $ENV{REMOTE_ADDR};
> my $rhost = $ENV{REMOTE_HOST};
> and I used the new variables in the HTML.

That won't make any difference; it's not the variable *names* that
are the problem, it's the *values*. $ENV{REMOTE_ADDR} should have
a value. $ENV{REMOTE_HOST} may or may not. What web server are you
running?

> 
> I am wondering if I should have vars in qq|| or not ... Going to try
> using a concatenate method ...

No, you're OK using vars inside qq(). Just make sure the variables
are spelled right and use the 'no warnings' to get rid of the
warning messages.

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

Reply via email to