John W. Krahn wrote:
Admin wrote:
Hi there,

Hello,

is there a page that explains the ||= operator and similar operators?
google is not quite finding the special characters in the first 10 hits.

$left ||= $right

is just short for:

$left = $left || $right

and || is the logical OR operator. So if $left is TRUE then it retains the same value however if $left is FALSE it is assigned the value of $right.


John


thanks John. that is what my tests showed but I could not find it in the docs. :)


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to