NAME

Number::Tolerant::Constant -- a blessed constant type

VERSION

version 1.40

$Id: Constant.pm,v 1.3 2004/12/07 20:46:29 rjbs Exp $

SYNOPSIS

use Number::Tolerant;
use Number::Tolerant::Constant;

my $range  = tolerance(10);
ref $range; # "Number::Tolerant" -- w/o ::Constant, would be undef

DESCRIPTION

When Number::Tolerant is about to return a tolerance with zero variation, it will return a constant instead. This module will register a constant type that will catch these constants and return them as Number::Tolerant objects.

I wrote this module to make it simpler to use tolerances with Class::DBI, which would otherwise complain that the constructor hadn't returned a blessed object.

TODO

AUTHOR

Ricardo SIGNES, <rjbs@cpan.org>

COPYRIGHT

(C) 2004, Ricardo SIGNES. Number::Tolerant::Constant is available under the same terms as Perl itself.