1Lingua::EN::Numbers::EaUssye(r3)Contributed Perl DocumenLtiantgiuoan::EN::Numbers::Easy(3)
2
3
4

NAME

6       Lingua::EN::Numbers::Easy - Hash access to Lingua::EN::Numbers objects.
7

SYNOPSIS

9           use Lingua::EN::Numbers::Easy;
10
11           print "$N{1} fish, $N{2} fish, blue fish, red fish";
12                                # one fish, two fish, blue fish, red fish.
13

DESCRIPTION

15       "Lingua::EN::Numbers" is a module that translates numbers to English
16       words. Unfortunally, it has an object oriented interface, which makes
17       it hard to interpolate them in strings. "Lingua::EN::Numbers::Easy"
18       translates numbers to words using a tied hash, which can be
19       interpolated.
20
21       By default, "Lingua::EN::Numbers::Easy" exports a hash %N to the
22       importing package. This can be changed by giving "use
23       Lingua::EN::Numbers::Easy" an argument - this argument is the name of
24       the hash that will be used instead:
25
26           use Lingua::EN::Numbers::Easy qw /%nums/;
27
28       would use %nums as the tied hash.
29
30       See also the "Lingua::EN::Numbers" man page.
31
32       "Lingua::EN::Numbers::Easy" caches results - numbers will only be
33       translated once.
34
35       Any other operation on the exported hash than fetches will throw an
36       exception.
37
38   History
39       This module was created at the end of the 20th century, when
40       "Lingua::EN::Numbers" has a clunky, OO interface.  Nowadays,
41       "Lingua::EN::Numbers" has procedural interface as well, lessening the
42       need for "Lingua::EN::Numbers::Easy".
43
44       Furthermore, "Lingua::EN::Numbers" no longer supports different British
45       and American modes. Therefore, the support for the modes has been
46       dropped in "Lingua::EN::Numbers" as well.
47
48       As for 2014, "Lingua::EN::Numbers" does not have an OO interface
49       anymore, just a procedurial one. There's probably no need for
50       "Lingua::EN::Numbers::Easy" anymore, and the reason it was created is
51       now completely gone.
52

AUTHOR

54       This package was written by Abigail,
55       <mailto:lingua-en-numbers-easy@abigail.be>
56
58       This package is copyright 1999 - 2009 by Abigail.
59
60       Permission is hereby granted, free of charge, to any person obtaining a
61       copy of this software and associated documentation files (the
62       "Software"), to deal in the Software without restriction, including
63       without limitation the rights to use, copy, modify, merge, publish,
64       distribute, sublicense, and/or sell copies of the Software, and to
65       permit persons to whom the Software is furnished to do so, subject to
66       the following conditions:
67
68       The above copyright notice and this permission notice shall be included
69       in all copies or substantial portions of the Software.
70
71       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
72       OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
73       MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
74       IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
75       OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
76       ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
77       OTHER DEALINGS IN THE SOFTWARE.
78
79
80
81perl v5.34.0                      2021-07-22      Lingua::EN::Numbers::Easy(3)
Impressum