The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 1.540

 $Id: /my/cs/projects/tolerant/trunk/lib/Number/Tolerant/Constant.pm 22321 2006-05-19T02:29:23.338118Z rjbs  $

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-2006, Ricardo SIGNES. Number::Tolerant::Constant is available under the same terms as Perl itself.