]> git.donarmstrong.com Git - infobot.git/blobdiff - scripts/symname.pl
remove defined %hash and defined @array tests
[infobot.git] / scripts / symname.pl
index f0562ab43cd879bae3ad5f4169e0cf10bbeb1d7f..88a4754dc13191bdebddadcc8c857ce1f1f8676a 100755 (executable)
@@ -96,10 +96,10 @@ sub DumpPackage {
             $scalar++;
             $size += length($sym);
         }
-        elsif ( defined @sym ) {
+        elsif ( @sym ) {
             $size += &DumpArray( $pad + 1, $symname, \@sym );
         }
-        elsif ( defined %sym ) {
+        elsif ( %sym ) {
             $size += &DumpHash( $pad + 1, $symname, \%sym );
         }
         elsif ( ( $symname =~ /::/ ) and ( $symname ne 'main::' ) ) {