line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FormValidator::LazyWay::Rule::Email; |
2
|
|
|
|
|
|
|
|
3
|
15
|
|
|
15
|
|
92
|
use strict; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
584
|
|
4
|
15
|
|
|
15
|
|
78
|
use warnings; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
492
|
|
5
|
15
|
|
|
15
|
|
21576
|
use Email::Valid; |
|
15
|
|
|
|
|
2491207
|
|
|
15
|
|
|
|
|
205
|
|
6
|
15
|
|
|
15
|
|
13878
|
use Email::Valid::Loose; |
|
15
|
|
|
|
|
14450
|
|
|
15
|
|
|
|
|
148
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub email { |
9
|
14
|
|
|
14
|
1
|
30
|
my $text = shift; |
10
|
14
|
|
|
|
|
25
|
my $args = shift; |
11
|
|
|
|
|
|
|
|
12
|
14
|
100
|
|
|
|
45
|
return Email::Valid->address( -address => $text, %{$args} ) ? 1 : 0; |
|
14
|
|
|
|
|
8059
|
|
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub email_loose { |
16
|
0
|
|
|
0
|
1
|
|
my $text = shift; |
17
|
0
|
|
|
|
|
|
my $args = shift; |
18
|
|
|
|
|
|
|
|
19
|
0
|
0
|
|
|
|
|
return Email::Valid::Loose->address( -address => $text, %{$args} ) ? 1 : 0; |
|
0
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
FormValidator::LazyWay::Rule::Email - Email Rule |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 METHOD |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head2 email |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head2 email_loose |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=cut |
35
|
|
|
|
|
|
|
|