should be moved out of the loop.
p4raw-id: //depot/perl@26485
return unless @_; # Ignore 'use constant;'
my $constants;
my $multiple = ref $_[0];
+ my $pkg = caller;
if ( $multiple ) {
if (ref $_[0] ne 'HASH') {
require Carp;
Carp::croak("Can't use undef as constant name");
}
- my $pkg = caller;
# Normal constant name
if ($name =~ /^_?[^\W_0-9]\w*\z/ and !$forbidden{$name}) {