a perl question

Chip Camden sterling at camdensoftware.com
Wed Jan 5 16:05:46 UTC 2011


Quoth Chad Perrin on Tuesday, 04 January 2011:
> On Tue, Jan 04, 2011 at 09:33:03AM -0800, Randal L. Schwartz wrote:
> > >>>>> "Patrick" == Patrick Bihan-Faou <patrick.bihan-faou at teambox.fr> writes:
> > 
> > Patrick> cat asdf.txt | grep -v XYZ | grep -v bla
> > 
> > And yet, you still have the "Useless Use of Cat".
> 
> The weirdest thing about most useless uses of cat is that not using cat
> would actually be a little clearer and involve fewer keystrokes -- as in
> this case.
> 
> -- 
> Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


I blame OOP.  Programmer thinks about the data stream before they think
about the process.  It's a nouns-first orientation.

-- 
Sterling (Chip) Camden    | sterling at camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com        | http://chipsquips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110105/98a705b6/attachment.pgp


More information about the freebsd-questions mailing list