Bryan R Harris wrote:

Out of curiosity, is there a unary not operator in perl?

  i.e.  "$a = $a+1"   is the same as   "$a++"

Is there a similarly short form of "$a = !$a"?  Like "$a!!"?  (tried it and
it didn't work.)

If it was there it should be ^^, not !!.


    $a += 1  <=>  $a++

    $a ^= 1  <=>  $a^^

--
Ruud

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to