- or download this
sub do_stuff {
my ( $self, %args ) = @_;
...
my $bar = $args{bar};
# ....
}
- or download this
void
do_stuff(self, ...)
...
NV bar = extract_nv(args_hash, "bar", 3);
/* ... */
}
- or download this
IV
extract_iv(hash, key, key_len) {
...
}
return SvIV(*sv_ptr);
}
- or download this
HV*
build_args_hash()
...
return args_hash;
}
- or download this
{
PUSHMARK(SP);
...
NV bar = extract_nv(args_hash, "bar", 3);
/* ... */
}
- or download this
{
HV *args_hash;
...
bar = extract_nv(args_hash, "bar", 3);
/* ... */
}
- or download this
HV *arg_hash = build_args_hash( &(ST(0)), items );