in reply to Re^4: Particle movement question
in thread Particle movement question
Start with use strict; use warnings; and clean up the mess that shows ya.
I suspect $F[$n] should be $Fn, ditto for $G[$n] to $Gn
its
notif ($flag eq 'C_N' || $flag eq 'C_S' || $flag eq 'C_E' || $flag eq 'C_ +W'){
if ($flag eq 'C_N', 'C_S', 'C_E', 'C_W'){
you say
but your init statements only dofor my $i (0..$N) { for my $j (0..$N) {
for $i (1..$imax) { for $j (1..$jmax) {
a numeric equals test is == not =, the single equals sign is an assignment
after that i got it to compile, dunno if it does anything
|
|---|