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

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



> 
> Now,  how about a dynamic multiplication table for kids (1-9).

Don't know what you mean by "dynamic"...

Here's a fun way to generate a table:

  formline((('@>>'x9)."\n")x9,map{$j=$_;map($j*$_,1..9)}1..9);

although this is a little shorter:

  map{$j=$_;map(formline('@>>',$_*$j),1..9);$^A.="\n";}1..9;


John Porter


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