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
--
Those people who think they know everything are a great
annoyance to those of us who do. -- Isaac Asimov
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/