NAME
Number::Tolerant::Constant -- a blessed constant type
VERSION
version 1.40
$Id: /my/cs/projects/tolerant/trunk/lib/Number/Tolerant/Constant.pm 18115 2006-01-27T01:51:05.875783Z 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, Ricardo SIGNES. Number::Tolerant::Constant is available under the same terms as Perl itself.