in reply to Why am I getting Can't use string (<string value>) as an ARRAY ref wile "strict refs" in use
attempts to access a 2-Dimensional array.$mtab1[$ii][$jj]=$user;
In other words, it expects
to be an array (technically, an array-reference) that can be further indexed.$mtab1[$ii]
However, the value assigned to that is NOT an array - it is a scalar, assigned in the previous statement:
That is why perl complains at run-time.$mtab1[$ii]=$tmpval; ##<<< This is a SCALAR
As a computer, I find your faith in technology amusing.
|
|---|