> for .1^...5 {print "$_\n";}
1.1
2.1
3.1
4.1
both still increments by 1
What am I doing wrong?
do this if you want to increment by 0.1:
say $_ for {0.1+$_}...^5
Best regards,
David Santiago
> for .1^...5 {print "$_\n";}
1.1
2.1
3.1
4.1
both still increments by 1
What am I doing wrong?
do this if you want to increment by 0.1:
say $_ for {0.1+$_}...^5
Best regards,
David Santiago