in reply to Re^2: Why am I getting Can't use string (<string value>) as an ARRAY ref wile "strict refs" in use
in thread Why am I getting Can't use string (<string value>) as an ARRAY ref wile "strict refs" in use
Lines 50 and 51 are:
$metrics{$product}{$date} = $day; $metrics{$product}{$date}{$hour}{$user} = $val;
So, on line 50 you set $metrics{$product}{$date} to be a scalar and then on line 51 you try to treat it as a hash ref. That's incompatible.
|
|---|