I had an extra ${...} around the assignment statement in the inner loop! Thanks to all who made suggestions! Harvey$tnum=0; foreach $thread (keys %threads) { $tsub[$tnum] = $thread; $tsize[$tnum] = @{$threads{$thread}}; print "\n\ttsize[tnum]= @tsize[$tnum]"; #dbg for ($i=0; $i<$tsize[$tnum] ; $i++) { $tlist[$tnum][$i] = $threads{$thread}[$i]; print "\n\t{threads{thread[$i]}}= $threads{$thread}[$i]"; print "\n\tt +list[$tnum][$i]= $tlist[$tnum][$i]"; #dbg } $tnum++; } }
In reply to Re^3: syntax of multidimensional arrays and hashes
by hsfrey
in thread syntax of multidimensional arrays and hashes
by hsfrey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |