BOOT:
{
- sub_op_keyword k;
- k.name = "reftype";
- k.len = sizeof("reftype")-1;
- k.check = 0;
- k.pp = scalar_util_reftype;
- sub_op_register(aTHX_ &k);
+ sub_op_config_t c;
+ c.name = "reftype";
+ c.len = sizeof("reftype")-1;
+ c.pp = scalar_util_reftype;
+ c.check = 0;
+ c.ud = NULL;
+ sub_op_register(aTHX_ &c);
}
In your Perl module file :
my $pkg = $data->{pkg};
my $fqn = join '::', $pkg, $name;
- _incoming($name, $pkg);
-
no strict 'refs';
*$fqn = $placeholder unless exists &$fqn;