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

Re: [FWP] Goal oriented programming



> This is why God gave us the low-precedence 'and' and 'or':
> 
> 	open F, "< foo" or die "open foo: $!";
> 	$x < 0 || $x > $#a and die "out of range"; # throw

Before that, He gave us parentheses:
($x<0 || $x > $#a) and die "out of range";

xoxo,
Andy

-- 
Andy Lester: andy@petdance.com  http://petdance.com/
"It takes a teenage riot to get me out of bed today."



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