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

Are you sure $Myhash{$item} or $Myhash{$item}{$iteminitem} contain hash references? From the error message I think (nay, I'm quite certain) that they contain simple hash values.

Go to the code which assigns some data into this hash and see what is being put into it.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James