my $namespace = $self->namespace;
- # FIXME
if (!exists $namespace->{$name}) {
- my $initial = $type eq 'ARRAY' ? []
- : $type eq 'HASH' ? {}
- : \undef;
- $self->add_package_symbol($variable, $initial)
+ if ($type eq 'ARRAY') {
+ $self->add_package_symbol($variable, []);
+ }
+ elsif ($type eq 'HASH') {
+ $self->add_package_symbol($variable, {});
+ }
+ else {
+ # FIXME
+ $self->add_package_symbol($variable)
+ }
}
my $entry_ref = \$namespace->{$name};