line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Number::Phone::Formatter::EPP; |
2
|
|
|
|
|
|
|
$Number::Phone::Formatter::EPP::VERSION = '0.05'; |
3
|
|
|
|
|
|
|
# ABSTRACT: An EPP formatter for Number::Phone |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
9877
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
6
|
1
|
|
|
1
|
|
33
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
174
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub format { |
10
|
3
|
|
|
3
|
1
|
592015
|
my ($class, $number) = @_; |
11
|
|
|
|
|
|
|
|
12
|
3
|
|
|
|
|
18
|
my ($code, $subscriber) = split /\s+/, $number, 2; |
13
|
|
|
|
|
|
|
|
14
|
3
|
|
|
|
|
16
|
$code =~ s/\D+//g; |
15
|
3
|
|
|
|
|
12
|
$subscriber =~ s/\D+//g; |
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
|
|
23
|
return "+${code}.${subscriber}"; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |