in reply to Re: adding number to array name
in thread adding number to array name
it prints 997 and prints 1000 for index 2. Not sure if this is the expected behaviour.print scalar(@{$store_get_dist[1]});
topush(@{$store_get_dist[$test_num]},$new);
and it should work. A quick dirty hack though.for ($test_num.. int((($#all_stores+3)/1000)+1)) { #3 to account for 998 1998 and 2998 push(@{$store_get_dist[$_]},$new); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: adding number to array name
by GrandFather (Saint) on Aug 24, 2006 at 08:18 UTC |