in reply to Re: Code fails without any reason?
in thread Code fails without any reason?
The $i's are counter up to 34, as they should, then $i is reset to 0 (in the same loop) which causes $x[$i] = $actafer[$in_i][$i]; to fail. Output is:for($i=0;$i<$c_IN;$i++) { print "$i $c_IN $in_i\n"; $x[$i] = $actafer[$in_i][$i]; if (not defined $x[$i]){die;} }
I was wondering why $i is reset to 0?........ 28 35 9 29 35 9 30 35 9 31 35 9 32 35 9 33 35 9 34 35 9 0 35 ARRAY(0xa04116c) Out of memory during "large" request for 1073745920 bytes, total sbrk( +) is 31744 0 bytes at neuronalnetwork.pl line 137.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re3: Code fails without any reason?
by dragonchild (Archbishop) on May 01, 2003 at 15:15 UTC |