in reply to Weird Warning

They ARE initialized! It even prints the error when the "test" line reads:
1 == 1 && 1 == 1

Replies are listed 'Best First'.
Re: Re: Weird Warning
by CharlesClarkson (Curate) on Jun 25, 2001 at 06:08 UTC

    I couldn't reproduce the error from the code given. Can you supply a bit more? Here's what I tested with:

    #!/usr/bin/perl use strict; use warnings; use diagnostics; my %SERVER; my $key = 1; $SERVER{$key}{one} = $SERVER{$key}{two} = 1; print "$SERVER{$key}{one} == 1 && $SERVER{$key}{two} == 1\n"; if($SERVER{$key}{one} == 1 && $SERVER{$key}{two} == 1){ }
    prints:1 == 1 && 1 == 1but no warning.

    HTH,
    Charles K. Clarkson