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

Re: [FWP] Moment of Zen



On Fri, 1 Oct 1999, Ronald J Kimball wrote:
>Neither code is the same as the original.  Code the same as the original
>cannot be benchmarked, because the original code is not complete!
>
>      my $mindshare = mindshare(...);

Thanks for pointing that out. If I remember right, it had two or
three arguments... but they were all derived rather easily from
a key of %sites.

Which brings up one more question: if f() is a function used in
only one context, should it be coded to be called as (e.g.)

      f(substr($x, 0, 2), substr($x, 2))

? I would always change it so the call is f($x). Why should your
mental model $x be so inflexible as to prevent that.

--
Tushar Samant
~
~
:wq


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