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

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



John Porter <jdporter@min.net> writes:
> Aaron Crane wrote:
> > John Porter <jdporter@min.net> writes:
> > >     do{$j=$_;formline('@>>',$_*$j)for 1..9;$^A.="\n";}for 1..9;
> > >     print $^A;
> > 
> >     for(1..9){$,=$_;printf"%3d",$_*$,for 1..9;print$/}
> 
> printf is a little too obvious.  formline is Much More Fun, don't you
> think?  The accumulator is cool!

Ah, now we're getting into those particularly flammable questions of
personal taste...

To be honest, I've never found much use for formats in the code I've
written, so formline() didn't even occur to me.  Of course, that meant I
found *your* WTDI particularly interesting.

-- 
Aaron Crane   <aaron.crane@pobox.com>   <URL:http://pobox.com/~aaronc/>

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