You are using "real" values, but what you really need is "string" values:
$x = 1; # integer $y = 6; # integer for( 1 .. 10 ) { $start_pt="$x.$y"; # string print " $start_pt "; $y++; } # 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15
In reply to Re: Simple loop question
by fglock
in thread Simple loop question
by perl_seeker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |