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
|