func({1=>'a', 2=>'a', 'a'=>99, 'f'=>'234', 'xyzzy'=>'Grue be here.', 'foo'=>'geww',}); sub func { my $hashref = shift; print "an item from hash: $hashref->{'xyzzy'}\n"; printf("another item from hash: %s\n", $hashref->{'foo'}); }