<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Mo::utils::Email - Mo utilities for email.

SYNOPSIS
     use Mo::utils::Email qw(check_email);

     check_email($self, $key);

DESCRIPTION
    Mo utilities for email checking of data objects.

SUBROUTINES
  "check_email"
     check_email($self, $key);

    Check parameter defined by $key which is valid email.

    Put error if check isn't ok.

    Returns undef.

ERRORS
     check_email(): 
             Parameter '%s' doesn't contain valid email.
                     Value: %s

EXAMPLE1
     use strict;
     use warnings;

     use Mo::utils::Email qw(check_email);

     my $self = {
             'key' =&gt; 'michal.josef.spacek@gmail.com',
     };
     check_email($self, 'key');

     # Print out.
     print "ok\n";

     # Output:
     # ok

EXAMPLE2
     use strict;
     use warnings;

     use Error::Pure;
     use Mo::utils::Email qw(check_email);

     $Error::Pure::TYPE = 'Error';

     my $self = {
             'key' =&gt; 'michal.josef.ﾅ｡paﾄ稿k@gmail.com',
     };
     check_email($self, 'key');

     # Print out.
     print "ok\n";

     # Output like:
     # #Error [..utils.pm:?] Parameter 'key' doesn't contain valid email.

DEPENDENCIES
    Email::Valid, Error::Pure, Exporter, Readonly.

SEE ALSO
    Mo  Micro Objects. Mo is less.

    Mo::utils::Language
        Mo language utilities.

    Wikibase::Datatype::Utils
        Wikibase datatype utilities.

REPOSITORY
    &lt;https://github.com/michal-josef-spacek/Mo-utils-Email&gt;

AUTHOR
    Michal Josef ﾅ�paﾄ稿k &lt;mailto:skim@cpan.org&gt;

    &lt;http://skim.cz&gt;

LICENSE AND COPYRIGHT
    ﾂｩ 2023-2024 Michal Josef ﾅ�paﾄ稿k

    BSD 2-Clause License

VERSION
    0.02

</pre></body></html>