| 1 | package FormValidator::LazyWay::Rule::Email; | ||||||||||
| 2 | |||||||||||
| 3 | 10 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 10 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 10 | ▶ | use Email::Valid; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 10 | ▶ | use Email::Valid::Loose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 4 | ▶ | sub email { | ||||||||
|
Subroutine
email: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 9 | 4 | my $text = shift; | |||||||||
| 10 | 4 | my $args = shift; | |||||||||
| 11 | |||||||||||
| 12 | 4 | ▶ | return Email::Valid->address( -address => $text, %{$args} ) ? 1 : 0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub email_loose { | ||||||||
|
Subroutine
email_loose: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 16 | 0 | my $text = shift; | |||||||||
| 17 | 0 | my $args = shift; | |||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | return Email::Valid::Loose->address( -address => $text, %{$args} ) ? 1 : 0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 10 | 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 | |||||||||||