You could name your temporary variables $city, $code, $hour, $reason. Or $tmp_key_city if you like. I think $key and $val don't say enough when you try to understand the program for the first time.
About " @holdval = keys %{$$switch_hash{$key}}" this might work:
@holdval = keys %{$val};In reply to Re: newbie question on HoH manipulation
by fglock
in thread newbie question on HoH manipulation
by gnu@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |