- or download this
use strict;
use warnings;
my $hashref = { "key" => "value" };
local *foo = $hashref;
printf("keys=%d\n", scalar(keys(%foo)));
- or download this
use strict;
use warnings;
...
local *foo = $hashref;
printf("keys=%d\n", scalar(keys(%foo)));
# prints: keys=0
- or download this
use strict;
use warnings;
...
local *foo = $hashref;
printf("keys=%d\n", scalar(keys(%foo)));
# prints: keys=1