in reply to Re^2: Enlarging scalars
in thread Enlarging scalars
Resultuse strict; use warnings; { print "using exterior values\n"; my $y=1; my $z=1; my $hoeveel=5; for (my $i=1; $i <= $hoeveel; $i++) { $y = $y + 155; $z = $z +1; print "$y $z\n"; }; } { print "using localizing interior values\n"; my $y=1; my $z=1; my $hoeveel=5; for (my $i=1; $i <= $hoeveel; $i++) { my $y = $y + 155; my $z = $z +1; print "$y $z\n"; }; }
using exterior values 156 2 311 3 466 4 621 5 776 6 using localizing interior values 156 2 156 2 156 2 156 2 156 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Enlarging scalars
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 |