||= sets the variable on the left to the value on the right if it is not already 
|defined.

&&= I would *guess* sets the value on the variable on the left to the value on the 
right if it is defined, but not if it is not defined, so I guess for when you want to 
replace something but not define it (which is probably followed by some ugly code).

But then I am like you and I have a C Bible but don't grok C.  Probably because I took 
at least one CS class in college...

http://danconia.org


------------------------------------------------
On Mon, 09 Dec 2002 12:48:27 -0500, "Geoffrey F. Green" <[EMAIL PROTECTED]> 
wrote:

> Here's a real beginners question:
> 
> What do the assignment operators "||=" and "&&="do?  I understand "+=" and
> "-=" and the like;, but I can't figure out what these two do.
> 
> Perldoc perlop isn't much help, saying only that they "work as in C", and my
> copy of "The C Programming Language" -- don't ask why I have it, since I've
> never programmed in C -- doesn't shed any light on it.
> 
> Thanks.
> 
>  - geoff 
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to