[Gllug] Awk Sed

David Damerell damerell at chiark.greenend.org.uk
Mon Dec 10 11:44:52 UTC 2001


On Saturday, 8 Dec 2001, Colin Coles wrote:
>>The highlight of the whole script, for me, was:
>>I vote $doit[$#doit+1] to be the most gross misuse of perl context
>>operators that I have seen in a long, long time... ;)
> Not being a Perl expert, nor this being a forum for the discussion of Perl 
>programing style, the merits of $doit[$#doit+1] above $doit[++$#doit] or even 
>push(@doit) are beyond me.

push (@doit) has the virtue of not being gratuitously perverse.

>'gross misuse' ??? Get real, one of the virtues of Perl is that allows this 
>kind of thing.

It certainly is a side effect of Perl's flexibility that it allows
people to write obfuscated code. Just because you can, however,
doesn't mean you _should_.

-- 
David Damerell <damerell at chiark.greenend.org.uk> flcl?

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list