in reply to Re: syntax of multidimensional arrays and hashes
in thread syntax of multidimensional arrays and hashes
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... :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: syntax of multidimensional arrays and hashes
by Marshall (Canon) on Jul 18, 2009 at 05:17 UTC | |
by hsfrey (Beadle) on Jul 19, 2009 at 04:43 UTC | |
|
Re^3: syntax of multidimensional arrays and hashes
by hsfrey (Beadle) on Jul 19, 2009 at 04:37 UTC |