and suddenly had an uncomfortable feeling. Are we supposed to watch out for nasty undefs slipping in there and taking up key seats in our hashes?$VERSION = '1.05'; foreach my $name ( keys %constants ) { unless (defined $name) { require Carp; Carp::croak("Can't use undef as constant name"); } ... }
In reply to undef as a key in a hash. by fenLisesi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |