What does !! (double exclamation point) mean?

Posted by molecules on Stack Overflow See other posts from Stack Overflow or by molecules
Published on 2010-01-30T15:46:22Z Indexed on 2010/04/07 1:03 UTC
Read the original article Hit count: 348

Filed under:
|
|
|

In the code below, from a blog post by Alias, I noticed the use of the double exclamation point !!. I was wondering what it meant and where I could go in the future to find explanations for Perl syntax like this. (Yes, I already searched for '!!' at perlsyn).

package Foo;

use vars qw{$DEBUG};
BEGIN {
    $DEBUG = 0 unless defined $DEBUG;
}
use constant DEBUG => !! $DEBUG;

sub foo {
    debug('In sub foo') if DEBUG;

    ...
}

UPDATE
Thanks for all of your answers.

Here is something else I just found that is related The List Squash Operator x!!

© Stack Overflow or respective owner

Related posts about perl

Related posts about operators