- or download this
my $x;
for (1..3) {
$h{hashslice} = \$x;
print(Internals::SvREFCNT($x), "\n");
}
- or download this
2
2
2
- or download this
my $x;
my @a; for (1..3) {
...
print(Internals::SvREFCNT($x), "\n");
push @a, $h{hashslice};
}
- or download this
2
3
4
- or download this
if (!(sv = hv_store(...))) {
SvREFCNT_dec(sv);
...
}