> -----Original Message----- > From: Geoffrey F. Green [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 09, 2002 12:48 PM > To: [EMAIL PROTECTED] > Subject: Perl operators question > > > 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.
$x ||= $y is equivalent to $x = $x || $y $x &&= $y is equivalent to $x = $x && $y -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]