Re: generate list in increments of 10's

2006-05-07 Thread Dr.Ruud
"Mr. Shawn H. Corey" schreef: > Dr.Ruud: >> print"$_$|$/"for 0..100; > > perl -e 'print"$_$|$/"for 0..100;' > perl -le 'print"$_$|"for 0..100;' Yes, but John set the rule to use "$/" and ";", and I decided to follow that. perl -le 'print$_.0for 0..100' (still has the 00-bug) -- Af

Re: generate list in increments of 10's

2006-05-07 Thread Dr.Ruud
"Dr.Ruud" schreef: > $\=$,="0$/";print 0..100; 00ps. Here some that don't start with "00": $,="0$/";print"",1..100,""; print map{$_*10,$/}0..100; map{print$_*10,$/}0..100; print$_*10,$/for 0..100; print$_*10,$/for+0..100; print$_*10,$/for-0..100; print$_*10,$/fo

Re: generate list in increments of 10's

2006-05-07 Thread Mr. Shawn H. Corey
On Sun, 2006-07-05 at 14:19 +0200, Dr.Ruud wrote: > print"$_$|$/"for 0..100; perl -e 'print"$_$|$/"for 0..100;' perl -le 'print"$_$|"for 0..100;' -- __END__ Just my 0.0002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing the

Re: generate list in increments of 10's

2006-05-07 Thread Dr.Ruud
John W. Krahn schreef: > Bryan Harris wrote: >> [attribution repaired] John W. Krahn: >>> for my $number ( 0 .. 100 ) { >>> print $number * 10, "\n"; >>> } >> >> Or if you enjoy perl golf: >> >> print map {($_*10)."\n"} 0..100; > > You call that golf? > > print map$_*10 .

Re: generate list in increments of 10's

2006-05-07 Thread John W. Krahn
Bryan Harris wrote: > >>for my $number ( 0 .. 100 ) { >>print $number * 10, "\n"; >>} > > > Or if you enjoy perl golf: > > print map {($_*10)."\n"} 0..100; You call that golf? print map$_*10 .$/,0..100; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PR

Re: generate list in increments of 10's

2006-05-06 Thread Bryan Harris
> for my $number ( 0 .. 100 ) { > print $number * 10, "\n"; > } Or if you enjoy perl golf: print map {($_*10)."\n"} 0..100; - B -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: generate list in increments of 10's

2006-05-04 Thread Mike Blezien
John, - Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Perl Beginners" 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

Re: generate list in increments of 10's

2006-05-03 Thread John W. Krahn
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 ) { pr

Re: generate list in increments of 10's

2006-05-03 Thread Chad Perrin
On Wed, May 03, 2006 at 09:49:11PM -0500, JupiterHost.Net wrote: > > Its ok if its homework, then they will remain stupid for lack of effort > and laziness will haunt their every clueless waking moments :) > > (say they interview for a job and they ask them to show their ability by > doing a si

Re: generate list in increments of 10's

2006-05-03 Thread JupiterHost.Net
Mike Blezien wrote: : 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 yes, there sure is :) What have you tried so far that is not working? I have a nice working example I'd love to share but we need to see what you've alre

Re: generate list in increments of 10's

2006-05-03 Thread Chad Perrin
On Wed, May 03, 2006 at 08:51:37PM -0500, Charles K. Clarkson wrote: > Mike Blezien wrote: > > : 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 > > No offense intended, but is this a homework problem? That's the impress

RE: generate list in increments of 10's

2006-05-03 Thread Charles K. Clarkson
Mike Blezien wrote: : 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 No offense intended, but is this a homework problem? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: