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

The most common cause for having a number where a reference is expected is when

$Myhash{$item} = @array;

is used instead of

$Myhash{$item} = \@array;