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

Re: [FWP] Goal oriented programming



Actually I often use the post-fix conditional so I can leave out the parens 
and braces :-)  The idiom I have trouble with is when someone writes 
something like

	/(?flo|je)tsam/ && $rejects++;

which derails my mental train while I react, "But that's an expression, not 
a statement!"  My brain is raising a "useless use of expression in void 
context" exception where no such thing exists.  Old habits die hard.  I 
would always write that as

	$rejects++ if /(?flo|je)tsam/;

Thank God TIMTOWTDI.

Peter Scott
Pacific Systems Design Technologies



==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org