![]() |
|
more useful options | |
PerlMonks |
Re^2: AJP pingby jffry (Hermit) |
on Nov 18, 2011 at 22:37 UTC ( #938921=note: print w/replies, xml ) | Need Help?? |
Actually, || is not a bit-wise operator. The reason that my statements like this:
...aren't dying properly is because , has lower operator precedence than ||. The or operator has the lowest precedence. See the perlop docs. This means that statement was evaluated like this:
...instead of like this:
And this is now making me question the wisdom of PBP's rules of: Don't use unnecessary parentheses for builtins and "honorary" builtins.Because I was thinking that functions in the Socket module were essentially honorary builtins.
In Section
Cool Uses for Perl
|
|