in reply to Why am I getting Can't use string (<string value>) as an ARRAY ref wile "strict refs" in use

Your attempted statement:
$mtab1[$ii][$jj]=$user;
attempts to access a 2-Dimensional array.

In other words, it expects

$mtab1[$ii]
to be an array (technically, an array-reference) that can be further indexed.

However, the value assigned to that is NOT an array - it is a scalar, assigned in the previous statement:

$mtab1[$ii]=$tmpval; ##<<< This is a SCALAR
That is why perl complains at run-time.

                As a computer, I find your faith in technology amusing.

  • Comment on Re: Why am I getting Can't use string (<string value>) as an ARRAY ref wile "strict refs" in use
  • Select or Download Code