Oct 17, 2009

Perl Error - Can't use string ("2") as a HASH ref while "strict refs" in use

Error:
Can't use string ("2") as a HASH ref while "strict refs" in use

Solution:
Object representing class is assinged or having numeric value "2"
it will be calling like 2->method() that makes compiler yelling

No comments:

Post a Comment