in reply to Re: typo? variable misteriously becoming undef
in thread typo? variable misteriously becoming undef
1. It felt funny doing it, but it seemed to work, so I left it.
2. Just to clarify: The first time through the loop, $la contains "Medina, OH", then I do a
split /\,\s*/, $la and assign it back into @la, so now $la should contain "Medina" and
$la should contain "OH". Second time through the loop, I select "5", $la gets assigned into the hash, and I shift, which should bump "Medina" out, and put "OH" at $la.