in reply to syntax of multidimensional arrays and hashes

References quick reference
$i < $tsize[$tnum]
$tsize$tnum is a reference, not a number

Use strict warnings and diagnostics or die

Replies are listed 'Best First'.
Re^2: syntax of multidimensional arrays and hashes
by hsfrey (Beadle) on Jul 19, 2009 at 03:38 UTC
    In the program, I print out $tsize$tnum immediately after the assignment, and it prints a number, the correct number. So it is not a reference but a number.