123456789101112131415
#!/usr/bin/perluse strict;use warnings;use Data::Dumper;my %hash = ( foo => 42, bar => '0815', buz => 'Woodstock' ); sub foo { my %hash = %{shift @_}; # use warnings! warn Dumper \%hash;}foo(\%hash);