Peter Fleck wrote:
> I'm getting this error (warning?) in my Apache error log:
>
> Use of uninitialized value in string ne
This is a warning.
>
> Here's the offending line.
>
> if ($titlelink ne undef)
That's not how you test for undef. Use the defined() function.
if (defined $titlelink) {
... blah
}
>
> I tried initializing at the beginning of the script with
>
> $titlelink = "";
>
> but I think a subsequent call to a mysql database is then
> unitializing the scalar when no data flows in.
undef may mean the column value is NULL. I'm not familiar with mysql.
>
> I'd like to stop the error messages even though they don't seem to
> matter. I don't like unnecessary clutter in my error logs.
Disable all warnings by removing -w or "use warnings" from your script.
Disable this particular warning by adding the following at the appropriate
scope:
no warnings 'uninitialized';
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]