You have omitted the sigil on your declaration, and misspelled the variable while dereferencing it for some reason.
my $hash_ref = {}; $hash_ref->{foo} = "bar";
In reply to Re^2: Building Hashrefs
by pbeckingham
in thread Building Hashrefs
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |