[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] fwp-digest V1 #109 -Reply




Aaron Crane wrote:
> 
>     do{$j=$_;formline('@>>',$_*$j)for 1..9;$^A.="\n"}for 1..9;print$^A
> 
> I'm further guessing that John's familiarity with
> this construction prevented him from noticing that do{block}for is actually
> longer than the simple for{block}.  

That's right.  Because originally I was using map:

	map {} 1..9

but then I noticed that Randal compliance could be achieved by 
a simple substitution:

	do {} for 1..9

And that's as far as I went with that.

John Porter


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe