in reply to Hash statement problem.

Also, I can pretty much predict that your program does not say:
use strict;
use warnings;

Because if it did, you would be getting this:
Can't use string ("0") as a HASH ref while "strict refs" in use ...

In your original post, there are many key details missing:   you said that you did an “upgrade,” but not from what to what.   The code you provided, as noted, probably would not have worked anyway.   Details are absolutely everything.

Replies are listed 'Best First'.
Re^2: Hash statement problem.
by huchister (Acolyte) on Mar 12, 2013 at 14:58 UTC
    Upgrade to Perl Version 5.8.8 to Version 5.10.12.