syntax error at noname.pl line 2, near "%hash{" Execution of noname.pl aborted due to compilation errors. #### my %hash = (hello => "Hello World\n", my_function => \&my_func); my $func_ref = %hash{"my_function"}; $func_ref-> (\%hash); sub my_func { my $hashref = shift; print $hashref->{hello} }