||== ,&&== ,|= ,&=

Discussion in 'Perl Misc' started by sujay.tukai@gmail.com, Aug 10, 2006.

  1. Guest

    What is the work done by these assignment operators...

    ||==, &&==, |=, &=
     
    , Aug 10, 2006
    #1
    1. Advertising

  2. -berlin.de Guest

    Michele Dondi <> wrote in comp.lang.perl.misc:
    > On 9 Aug 2006 23:51:23 -0700, ""
    > <> wrote:
    >
    > >What is the work done by these assignment operators...
    > >
    > > ||==, &&==, |=, &=

    >
    > This is easy:
    >
    > $x ||= $y; # is equivalent to
    > $x = $x || $y; # and the same goes for the other ones


    ....except that the first two don't exist.

    Anno
     
    -berlin.de, Aug 10, 2006
    #2
    1. Advertising

  3. Guest

    Michele Dondi wrote:
    > On 10 Aug 2006 10:31:51 GMT, -berlin.de wrote:
    >
    > >> > ||==, &&==, |=, &=
    > >>
    > >> This is easy:
    > >>
    > >> $x ||= $y; # is equivalent to
    > >> $x = $x || $y; # and the same goes for the other ones

    > >
    > >...except that the first two don't exist.

    >
    > Oops! I didn't even notice...



    sorry my mistake i typed the equal sign twice
     
    , Aug 10, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page