$f{ $key} = $val;
is( $f{ $key}, $val, "plain key set in field");
my ( $id) = keys %f;
- my $refaddr = hex +($key =~ /\(0x([[:xdigit:]]+)\)$/)[ 0];
+ my $refaddr = refaddr($key);
is $id, $refaddr, "key is refaddr";
bless $key;
is( $f{ $key}, $val, "access through blessed");
#######################################################################
sub refaddr {
+ # silence possible warnings from hex() on 64bit systems
+ no warnings 'portable';
+
my $ref = shift;
hex +($ref =~ /\(0x([[:xdigit:]]+)\)$/)[ 0];
}