$tsize[$tnum] = @{$threads{$thread}};
doesn't appear to have any real meaning or usefulness.
use @{$threads{$thread}} instead of trying to assign a scalar value to a 'C' style @tsize array.
In reply to Re^3: syntax of multidimensional arrays and hashes
by Marshall
in thread syntax of multidimensional arrays and hashes
by hsfrey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |