| 1 | package App::LinguaSUUtils; | ||
| 2 | |||
| 3 | 1 | our $DATE = '2016-02-08'; # DATE | |
| 4 | 1 | our $VERSION = '0.01'; # VERSION | |
| 5 | |||
| 6 | 1 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | ▶ | use App::LinguaCommonUtils qw(%arg_words %arg_nums); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | our %SPEC; | |
| 13 | |||
| 14 | $SPEC{num_to_word} = { | ||
| 15 | 1 | v => 1.1, | |
| 16 | summary => 'Convert number (123) to word ("saratus dua puluh tilu")', | ||
| 17 | 'x.no_index' => 1, | ||
| 18 | args => { | ||
| 19 | %arg_nums, | ||
| 20 | }, | ||
| 21 | result_naked => 1, | ||
| 22 | }; | ||
| 23 | 0 | ▶ | sub num_to_word { |
|
Subroutine
num_to_word: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 24 | 0 | require Lingua::SU::Nums2Words; | |
| 25 | |||
| 26 | 0 | my %args = @_; | |
| 27 | |||
| 28 | 0 | [map {Lingua::SU::Nums2Words::nums2words($_)} @{ $args{nums} }]; | |
| 29 | } | ||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | # ABSTRACT: Command-line utilities related to the Sundanese language | ||
| 33 | |||
| 34 | __END__ | ||