I suspect you want this instead
The extra my commands isolated the variables outside of the loop from any changes but it also meant the inner variables became almost staticfor (my $i=1; $i <= $hoeveel; $i++) { $y = $y + 155; $z = $z +1; print "$a\n"; };
In reply to Re: Enlarging scalars
by huck
in thread Enlarging scalars
by WisDomSeeKer34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |