develooper Front page | perl.beginners | Postings from August 2009

Re: ||= operator

Thread Previous | Thread Next
From:
Shawn H. Corey
Date:
August 10, 2009 11:01
Subject:
Re: ||= operator
Message ID:
4A80605A.7060604@gmail.com
Chas. Owens wrote:
> =head2 C<X ||= Y>
> 
> This is equivalent to C<X = X || Y>, see C<||> and C<=> for more information.

This is equivalent to C<X = X || (Y)>, see C<||> and C<=> for more 
information.

=cut

A subtle difference that can catch the unaware :)


-- 
Just my 0.00000002 million dollars worth,
   Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

Thread Previous | 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