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

Re: [FWP] Changing the subject (was: Badly written code)



At 03:09 PM 11/8/99 -0600, Tushar Samant wrote:
>On Sun, 7 Nov 1999, Yitzchak Scott-Thoennes wrote:
> >I'd like to share the following with you all. [...]
>
>[grep in void context]
>
>This is sort of nice to know, because it never bothered me either.
>Actually I stopped reading, um, certain newsgroups because an
>inexplicably large number of people WERE bothered by things like
>this--enough to flame mercilessly. I think grep in void context,
>confusing list and array, stringifying a string, unnecesary quotes
>in a hash lookup ($hash{'key'}), local instead of my, indirect
>object syntax for new(), etc etc just don't make a damn bit of
>difference most of the time.

The objection that I found most frivolous was someone - I see no need to 
name names - saying that someone else who had written

         $|++;

should have written it as

         $| = 1;

since it executes faster (and produced Benchmark data to prove it).

Think about it.

I didn't feel like stepping into the fray and pointing out that Randal 
writes it the first way in all his columns, almost certainly because it's 
faster to type.


--
Peter Scott
Pacific Systems Design Technologies


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