/usr/share/doc/libhash-fieldhash-perl/examples/simpleuse.pl is in libhash-fieldhash-perl 0.14-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/usr/bin/perl -w
use strict;
use Hash::FieldHash qw(:all);
use Data::Dumper;
fieldhashes \my(%foo, %bar);;
{
my $o = [42];
my $x = {};
$foo{$o} = 3.14;
$bar{$o} = 1.14;
$foo{$x} = 'x.foo';
$bar{$x} = 'x.bar';
print "inside the scope:\n";
print Data::Dumper->Dump([\%foo, \%bar], [qw(*foo *bar)]);
#my $y = $o;
#use Devel::Peek; Dump $y;
}
print "outside the scope:\n";
print Data::Dumper->Dump([\%foo, \%bar], [qw(*foo *bar)]);
|