in reply to Simple Hash Usage

In addition to almut's solution, use strict and warnings.
use warnings;
would have shown you a useful warning message.

Also, perltidy is handy for good code layout.

Replies are listed 'Best First'.
Re^2: Simple Hash Usage
by kapoor (Novice) on Feb 25, 2010 at 17:19 UTC

    Thanks a lot almut, toolic, it works, I do use strict and warnings, but did not used in this script.