in reply to Enlarging scalars
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"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Enlarging scalars
by Anonymous Monk on Jun 12, 2017 at 13:04 UTC | |
by Corion (Patriarch) on Jun 12, 2017 at 13:11 UTC | |
by huck (Prior) on Jun 12, 2017 at 13:17 UTC | |
by WisDomSeeKer34 (Sexton) on Jun 12, 2017 at 13:44 UTC | |
by talexb (Chancellor) on Jun 12, 2017 at 13:53 UTC | |
by Corion (Patriarch) on Jun 12, 2017 at 13:52 UTC | |
by huck (Prior) on Jun 12, 2017 at 13:51 UTC |