1Number::Tolerant::ConstUasnetr(3C)ontributed Perl DocumeNnutmabteiro:n:Tolerant::Constant(3)
2
3
4
6 Number::Tolerant::Constant - a blessed constant type
7
9 version 1.708
10
12 use Number::Tolerant;
13 use Number::Tolerant::Constant;
14
15 my $range = tolerance(10);
16 ref $range; # "Number::Tolerant" -- w/o ::Constant, would be undef
17
19 When Number::Tolerant is about to return a tolerance with zero
20 variation, it will return a constant instead. This module will
21 register a constant type that will catch these constants and return
22 them as Number::Tolerant objects.
23
24 I wrote this module to make it simpler to use tolerances with
25 Class::DBI, which would otherwise complain that the constructor hadn't
26 returned a blessed object.
27
29 Ricardo Signes <rjbs@cpan.org>
30
32 This software is copyright (c) 2004 by Ricardo Signes.
33
34 This is free software; you can redistribute it and/or modify it under
35 the same terms as the Perl 5 programming language system itself.
36
37
38
39perl v5.32.1 2021-01-27 Number::Tolerant::Constant(3)