my %hash; ... sub process { %hash = (); # empty hash but not using undef # do stuff with hash }