Subject: | if (!%myhash) seems works wrong |
Date: | Thu, 13 Sep 2007 13:03:19 +0400 |
To: | bug-Hash-Case [...] rt.cpan.org |
From: | Dmitry Bolshakoff <bdimych [...] narod.ru> |
Environment
Linux rhes3-01 2.4.21-20.ELsmp #1 SMP Wed Aug 18 20:46:40 EDT 2004 i686 i686 i386 GNU/Linux
perl, v5.8.0 built for i386-linux-thread-multi
Hash::Case '1.004'
code
#!/usr/bin/perl
use Hash::Case::Upper;
tie my %myhash, 'Hash::Case::Upper';
$myhash{111} = 222;
if (!%myhash) {
print "\%myhash false\n";
}
else {
print "\%myhash true\n";
}
Prints “%myhash false“ – error ?
--
with best regards
Dmitry Bolshakoff