[thelist] Assignment Question

misterhaan misterhaan at track7.org
Fri Sep 10 11:03:34 CDT 2010


  a |= b does in fact mean the same as a = a | b.  the single pipe is a 
bitwise or.

On 9/10/2010 11:00 AM, Ed McCarroll wrote:
>> I figured most languages(i'm not gonna say all) would be the same for
> assignment ops.
>
> I've programmed in many languages, but not PERL, and:
>
> 1. Assignment ops do vary, depending upon language, more than you'd think.
> 2. I've never seen a "|=" operator.
> 3. I'm guessing "a |= b" might mean "a = a | b", like C's "+=" operator.
>
> Sorry.
>
> ----------------------- Edward W. McCarroll Ed at ComSimplicity.com
> 310.904.3651
>
>



More information about the thelist mailing list