| 1 | # For Emacs: -*- mode:cperl; eval: (folding-mode 1); -*- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | package Lingua::SWE::Num2Word; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | # ABSTRACT: Number to word conversion in Swedish | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use 5.16.0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | 1 | ▶ | use utf8; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | # {{{ use block | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | 1 | ▶ | use Export::Attrs; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | # }}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | # {{{ variables declaration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | 1 | our $VERSION = '0.2603270'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | # }}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | # {{{ num2sv_cardinal convert number to text | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | sub num2sv_cardinal :Export { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | 8 | ▶ | my $positive = shift // return 'noll'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
num2sv_cardinal: called CC=15 SCAR=34.9
Pod
documented
Condition100%2/2
shift() // (return "noll")
MC/DC100%1/1
shift() // (return "noll")
shift()
Truth table100%2/2
A
A= shift()
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | 7 | ▶ | return if ($positive < 0); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | 7 | my $out; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | 7 | my @tokens1 = qw(noll ett två tre fyra fem sex sju åtta nio tio elva | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | tolv tretton fjorton femton sexton sjutton arton nitton); # 0-19 Cardinals | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | 7 | my @tokens2 = qw(tjugo trettio fyrtio femtio sextio sjutio åttio nittio); # 20-90 Cardinals (end with zero) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | 7 | ▶ | return $tokens1[$positive] if($positive < 20); # interval 0 - 19 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | 5 | ▶ | if($positive < 100) { # interval 20 - 99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 4 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | 0 | my @num = split '',$positive; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | 0 | $out = $tokens2[$num[0]-2]; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | 0 | ▶ | $out .= $tokens1[$num[1]] if ($num[1]); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | } elsif($positive < 1000) { # interval 100 - 999 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | 3 | my @num = split '',$positive; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | 3 | $out = $tokens1[$num[0]].'hundra'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | 3 | ▶ | if ((int $num[1].$num[2]) < 20 && (int $num[1].$num[2])>0 ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
int $num[1] . $num[2] < 20 and int $num[1] . $num[2] > 0
MC/DC0%0/2
int $num[1] . $num[2] < 20 and int $num[1] . $num[2] > 0
int $num[1] . $num[2] < 20
int $num[1] . $num[2] > 0
Truth table33%1/3
A and B
A= int $num[1] . $num[2] < 20B= int $num[1] . $num[2] > 0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | 0 | $out .= &num2sv_cardinal(int $num[1].$num[2]); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | 3 | ▶ | $out .= $tokens2[$num[1]-2] if($num[1]); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | 3 | ▶ | $out .= $tokens1[$num[2]] if($num[2]); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | } elsif($positive < 1000_000) { # interval 1000 - 999_999 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | 2 | my @num = split '',$positive; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | 2 | my @sub = splice @num,-3; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | 2 | $out = &num2sv_cardinal(int join '',@num); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | 2 | $out .= 'tusen'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | 2 | ▶ | $out .= &num2sv_cardinal(int join '',@sub) if (int(join "",@sub) >0); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | } elsif($positive < 1_000_000_000) { # interval 1_000_000 - 999_999_999 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | 0 | my @num = split '',$positive; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | 0 | my @sub = splice @num,-6; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | 0 | $out = &num2sv_cardinal(int join '',@num); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | 0 | $out .= ' miljoner '; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | 0 | ▶ | $out .= &num2sv_cardinal(int join '',@sub) if (int(join "",@sub) >0); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | 5 | return $out; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | 1 | ▶ | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | # }}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | # {{{ num2sv_ordinal convert number to ordinal text | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | sub num2sv_ordinal :Export { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | 0 | ▶ | my $number = shift; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
num2sv_ordinal: not called CC=18 SCAR=58.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | 0 | ▶ | return if !defined $number | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/9
not defined $number && $number =~ /\A\d+\z/msux or $number < 1 or $number > 999999999
not defined $number && $number =~ /\A\d+\z/msux or $number < 1
defined $number && $number =~ /\A\d+\z/msux
MC/DC0%0/4
not defined $number && $number =~ /\A\d+\z/msux or $number < 1 or $number > 999999999
defined $number
$number =~ /\A\d+\z/msux
$number < 1
$number > 999999999
Truth table0%0/5
not(A && B) or C or D
A= defined $numberB= $number =~ /\A\d+\z/msuxC= $number < 1D= $number > 999999999
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | || $number !~ m{\A\d+\z}xms | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | || $number < 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | || $number > 999_999_999; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | # Fully irregular 1-3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | 0 | ▶ | return 'första' if $number == 1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | 0 | ▶ | return 'andra' if $number == 2; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | 0 | ▶ | return 'tredje' if $number == 3; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | # Irregular 4-12 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | 0 | my %irregular = ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | 4 => 'fjärde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | 5 => 'femte', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | 6 => 'sjätte', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | 7 => 'sjunde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | 8 => 'åttonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | 9 => 'nionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | 10 => 'tionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | 11 => 'elfte', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | 12 => 'tolfte', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | 0 | ▶ | return $irregular{$number} if exists $irregular{$number}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | # 13-19: special ordinal stems | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | 0 | my %teens = ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | 13 => 'trettonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | 14 => 'fjortonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | 15 => 'femtonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | 16 => 'sextonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | 17 => 'sjuttonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | 18 => 'artonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | 19 => 'nittonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | 0 | ▶ | return $teens{$number} if exists $teens{$number}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | # Tens ordinal stems (exact multiples) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | 0 | my %tens_ord = ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | 20 => 'tjugonde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | 30 => 'trettionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | 40 => 'fyrtionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | 50 => 'femtionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | 60 => 'sextionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | 70 => 'sjuttionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | 80 => 'åttionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | 90 => 'nittionde', | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | # 20-99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | 0 | ▶ | if ($number < 100) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | 0 | my $tens = int($number / 10) * 10; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | 0 | my $ones = $number % 10; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | 0 | ▶ | return $tens_ord{$tens} if $ones == 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | # Compound: cardinal tens prefix + ordinal of ones | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | 0 | my @tens_card = qw(tjugo trettio fyrtio femtio sextio sjutio åttio nittio); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | 0 | return $tens_card[int($number/10) - 2] . num2sv_ordinal($ones); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | # 100-999 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | 0 | ▶ | if ($number < 1000) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | 0 | my $hundreds = int($number / 100); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | 0 | my $remain = $number % 100; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | 0 | ▶ | if ($remain == 0) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | 0 | my @tokens1 = qw(noll ett två tre fyra fem sex sju åtta nio); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | 0 | return $tokens1[$hundreds] . 'hundrade'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | 0 | return num2sv_cardinal(int($number / 100) * 100) . num2sv_ordinal($remain); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | # 1000-999_999 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | 0 | ▶ | if ($number < 1_000_000) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | 0 | my $remain = $number % 1000; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | 0 | ▶ | if ($remain == 0) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | 0 | return num2sv_cardinal(int($number / 1000)) . 'tusende'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | 0 | return num2sv_cardinal(int($number / 1000)) . 'tusen' . num2sv_ordinal($remain); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | # 1_000_000 - 999_999_999 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | 0 | ▶ | if ($number < 1_000_000_000) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | 0 | my $remain = $number % 1_000_000; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | 0 | ▶ | if ($remain == 0) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | 0 | return num2sv_cardinal(int($number / 1_000_000)) . ' miljonte'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | 0 | return num2sv_cardinal(int($number / 1_000_000)) . ' miljoner ' . num2sv_ordinal($remain); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | 1 | ▶ | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | # }}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | # {{{ capabilities declare supported features | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | sub capabilities { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | return { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | 0 | ▶ | cardinal => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
capabilities: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | ordinal => 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | }; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | # }}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | 1 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | __END__ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||