[clue-tech] I'm blind, or why is this PHP fwrite() failing?

David L. Anselmi anselmi at anselmi.us
Tue Sep 27 20:12:39 MDT 2005


Jed S. Baer wrote:
[...]
> But if memory serves me right (and clearly, sometimes it doesn't), doesn't
> the || in Perl short-circuit? Or does it have a different precedence?

Yes, both || and "or" in Perl short-circuit--they are both logical 
operators and, AFAIK, all logical operators will short circuit (in Perl 
and shell anyway).

The only difference between || and "or" (Perl and PHP) is their 
precedence.  I suppose the fact that assignment falls between them is a 
feature (at least after you figure it out).

Dave
_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech



More information about the clue-tech mailing list