/usr/share/perl5/auto/Data/Validate/Email/is_email.al is in libdata-validate-email-perl 0.04-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | # NOTE: Derived from blib/lib/Data/Validate/Email.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Data::Validate::Email;
#line 157 "blib/lib/Data/Validate/Email.pm (autosplit into blib/lib/auto/Data/Validate/Email/is_email.al)"
# -------------------------------------------------------------------------------
sub is_email{
my $self = shift if ref($_[0]);
my $value = shift;
return unless defined($value);
my $opt = (defined $self) ? $self : (shift);
my @parts = split(/\@/, $value);
return unless scalar(@parts) == 2;
my($user) = is_username($parts[0], $opt);
return unless defined($user);
return unless $user eq $parts[0];
my $domain = is_domain($parts[1], $opt);
return unless defined($domain);
return unless $domain eq $parts[1];
return $user . '@' . $domain;
}
# end of Data::Validate::Email::is_email
1;
|