develooper Front page | perl.beginners | Postings from December 2002

Perl operators question

Thread Next
Geoffrey F. Green
December 9, 2002 09:48
Perl operators question
Message ID:
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.


 - geoff 

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About