Mike Blezien wrote:
> Hello,

Hello,

> is there a simple way to generate a list of numbers from 0 - 1000 in
> increments of 10 IE: 0, 10, 20, 30, 40. ...etc
> 
> IE: foreach (0..1000)
>    {
>      # create increments of 10's
>    }

for ( my $number = 0; $number <= 1_000; $number += 10 ) {
    print "$number\n";
    }


for my $number ( 0 .. 100 ) {
    print $number * 10, "\n";
    }



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to