use XYZ qw(%Hash1 %Hash2); #### print "$_ => $Hash1{$_}\n" for keys %Hash1;