in reply to Re^2: hash assignment
in thread hash assignment

Not a "waste" but an opportunity to learn:
  1. use warnings; as well as strict;
  2. Check compilation before throwing up your hands in dismay. That is, at your command prompt, execute perl -c filename

The two, together, will reveal problems such as this.