John,

----- Original Message ----- From: "John W. Krahn" <[EMAIL PROTECTED]>
To: "Perl Beginners" <beginners@perl.org>
Sent: Wednesday, May 03, 2006 10:58 PM
Subject: Re: generate list in increments of 10's


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 .. 100 ) {
   print $number * 10, "\n";
   }

that is what I ended up doing.

Thx's
Mike



--
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