Haineko::SMTPD::RFC5322 - Tools related RFC-5322
use Haineko::SMTPD::RFC5322; my $x = Haineko::SMTPD::RFC5322->is_emailaddress( 'kijitora@example.jp' ); my $y = Haineko::SMTPD::RFC5322->is_domainpart( 'example.jp' ):
is_emailaddress() checks whether the argument is valid email address or not.
my $x = 'Stray cat'; my $y = 'kijitora@example.jp'; my $z = ''; print Haineko::SMTPD::RFC5322->is_emailaddress( $x ); # 0 print Haineko::SMTPD::RFC5322->is_emailaddress( $y ); # 1 print Haineko::SMTPD::RFC5322->is_emailaddress( $z ); # 0
is_domainpart() returns checks the argument is valid domain part or not.
print Haineko::SMTPD::RFC5322->is_domainpart( 'kijitora' ); # 0 print Haineko::SMTPD::RFC5322->is_domainpart( 'example.jp.' ); # 1 print Haineko::SMTPD::RFC5322->is_domainpart( '' ); # 0
https://github.com/azumakuniyuki/Haineko
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.