NAME

OP::Enum::Bool

DESCRIPTION

Bool enumeration. Uses OP::Enum to provides "true" (1) and "false" (0) constants for use in Perl applications. Complete syntactical sugar, basically.

Future versions of Perl will have boolean keywords, at which point this module should go away.

SYNOPSIS

package Foo;

use OP::Enum::Bool;

sub foo {
  ...
  return true;
}

sub bar {
  ...
  return false;
}

true;

EXPORTS CONSTANTS

  • false

    0

  • true

    1

SEE ALSO

OP::Enum, OP::Class

This file is part of OP.

REVISION

$Id: //depotit/tools/snitchd/OP-0.20/lib/OP/Enum/Bool.pm#1 $