use strict; use warnings; sub test { my $x = shift; } my %hash = ( a => "a" ); test $hash{"b"};