Revision history for Perl extension Class-MOP.
+ * Class::MOP::Package
+ - Disable prototype mismatch warnings for add_package_symbol.
+ (Florian Ragwitz)
+
0.83 Mon, April 27, 2009
* Class::MOP::Class
- Fix segfault when calling get_method_map on a metaclass for an empty
my ($name, $sigil, $type) = ref $variable eq 'HASH'
? @{$variable}{qw[name sigil type]}
- : $self->_deconstruct_variable_name($variable);
+ : $self->_deconstruct_variable_name($variable);
my $pkg = $self->{'package'};
no strict 'refs';
- no warnings 'redefine', 'misc';
- *{$pkg . '::' . $name} = ref $initial_value ? $initial_value : \$initial_value;
+ no warnings 'redefine', 'misc', 'prototype';
+ *{$pkg . '::' . $name} = ref $initial_value ? $initial_value : \$initial_value;
}
sub remove_package_glob {