sub play_around { my $hashref = shift; # This will effect the outside hash $hashref->{leggo} = "yes"; ... }