my %PREREQ_PM = (
'B::Keywords' => 0,
'Carp' => 0,
- 'Variable::Magic' => '0.08',
+ 'Variable::Magic' => '0.31',
'XSLoader' => 0,
);
use B::Keywords;
-use Variable::Magic qw/wizard cast dispell getdata/;
+use Variable::Magic 0.31 qw/wizard cast dispell getdata/;
BEGIN {
unless (Variable::Magic::VMG_UVAR) {
sub _fetch {
(undef, my $data, my $func) = @_;
- return if $data->{guard} or $func =~ /::/ or exists $core{$func};
+ return if $data->{guard};
local $data->{guard} = 1;
+ return if $func =~ /::/
+ or exists $core{$func};
+
+ my $op_name = $_[-1] || '';
+ return if $op_name =~ /method/;
+
my $pkg = $data->{pkg};
my $hints = (caller 0)[10];
return;
}
-my $wiz = wizard data => sub { +{ pkg => $_[1], guard => 0 } },
- fetch => \&_fetch,
- store => \&_store;
+my $wiz = wizard data => sub { +{ pkg => $_[1], guard => 0 } },
+ fetch => \&_fetch,
+ store => \&_store,
+ op_info => Variable::Magic::VMG_OP_INFO_NAME;
my %pkgs;