On Wed, Sep 9, 2009 at 09:46, Dermot<paik...@googlemail.com> wrote: snip > my $var = !! $class->method; snip
This is really my $var = ! ( ! $class->method ); People do this to create a boolean like value. Perl has many false values and many true values: False: (), "", "0", 0, 0.0, and undef True: any value that explicitly named above Occasionally it is nice to have just one false and one true to worry about. Double negation will always returns either an empty string or 1 depending on whether the value was false or true. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/