Rob Dixon wrote: > > Tore Aursand wrote: > > > > On Thu, 13 Nov 2003 09:05:45 -0600, Dan Muey wrote: > > >> In Perl that is usually written as: > > >> > > >> for $count ( 1 .. 5 ) { > > >> print "$count\n"; > > >> } > > > > > Or even easier: > > > for(1..5) { print; } > > > > Or _even_ easier; > > > > print 1..5; > > For the subscribers who don't already know, > what are the differences between my > > print for 1..5
for iterates over the list 1..5 and sets $_ with each value and then print is called for each item and print out the value in $_. > and Tore's > > print 1..5 print is passed the list 1..5 and prints it out. > ? (Deep magic here!) Not really. :-) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]