Sorry that I don't understand, but I just don't.
$tsize[$tnum] = @{$threads{$thread}};
is nonsense.
Well syntactically it's correct %threads is a HoA, so @tsize is supposed to hold the sizes of these (now indexedč) arrays.
I agree that it's hard to imagine why to store the sizes statically...
Cheers Rolf
(1) Well should be noted that $tnum is initialized but never incremented... :-)
In reply to Re^2: syntax of multidimensional arrays and hashes
by LanX
in thread syntax of multidimensional arrays and hashes
by hsfrey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |