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

Perl operators question

Thread Next
From:
Geoffrey F. Green
Date:
December 9, 2002 09:48
Subject:
Perl operators question
Message ID:
BA1A419B.D35B%geoff-public@stuebegreen.com
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 


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About