| 1 | package Cikl::DataTypes::Email; | ||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 2 | ▶ | use Cikl::DataTypes::LowerCaseStr; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use Mouse::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use Mail::RFC822::Address qw/valid/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | subtype 'Cikl::DataTypes::Email', | ||||||||||
| 10 | as 'Cikl::DataTypes::LowerCaseStr', | ||||||||||
| 11 | 21 | ▶ | where { valid($_) && $_ !~ /^\s+|\s+$/ }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 12 | 16 | ▶ | message { "Invalid E-Mail address: $_"} ; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 2 | 1; | |||||||||
| 14 | |||||||||||
| 15 | |||||||||||
| 16 | |||||||||||