Haineko::SMTPD::Addreess - Create an email address object
Create an simple object containing a local-part, a domain-part, and an email address.
use Haineko::SMTPD::Address; my $e = Haineko::Address->new( 'address' => 'kijitora@example.jp' ); print $e->user; # kijitora print $e->host; # example.jp print $e->address; # kijitora@example.jp print Data::Dumper::Dumper $e->damn; $VAR1 = { 'user' => 'kijitora', 'host' => 'example.jp', 'address' => 'kijitora@example.jp' };
new( 'address' = email-address )
new() is a constructor of Haineko::SMTPD::Address
new()
my $e = Haineko::SMTPD::Address->new( 'address' => 'kijitora@example.jp' );
canonify( email-address )
canonify() picks an email address only (remove a name and comments)
canonify()
my $e = HainekoSMTPD::::Address->canonify( 'Kijitora <kijitora@example.jp>' ); my $f = HainekoSMTPD::::Address->canonify( '<kijitora@example.jp>' ); print $e; # kijitora@example.jp print $f; # kijitora@example.jp
damn
damn() returns instance data as a hash reference
damn()
my $e = Haineko::SMTPD::Address->new( 'address' => 'kijitora@example.jp' ); my $f = $e->damn; print Data::Dumper::Dumper $f; $VAR1 = { 'user' => 'kijitora', 'host' => 'example.jp', 'address' => 'kijitora@example.jp' };
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.