You will see that there is a space after a1:print ">>>$1<<<"; #print "a1"
'a1 ' is not the same as 'a1' as a hash key.>>>a1 <<<
You should also use warnings because it tells you which line is fishy.
See also: chess
In reply to Re: Weird hash access problem
by toolic
in thread Weird hash access problem
by tehjord
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |