The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Devel::Ladybug::Enum::Bool - Boolean enumeration

DESCRIPTION

Bool enumeration. Uses Devel::Ladybug::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 Devel::Ladybug::Enum::Bool;

  sub foo {
    ...
    return true;
  }

  sub bar {
    ...
    return false;
  }

  true;

EXPORTS CONSTANTS

  • false

    0

  • true

    1

SEE ALSO

Devel::Ladybug::Enum, Devel::Ladybug::Class

This file is part of Devel::Ladybug.

REVISION

$Id: $