my $object = Thingy->new; if ($obj->is_valid()) { $log->print("It works!\n"); }