Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Email::Address::Loose(User Contributed Perl DocumentatEmail::Address::Loose(3)

NAME
       Email::Address::Loose - Make Email::Address->parse() loose

SYNOPSIS
	 my $address = 'read..rfc822.@docomo.ne.jp'; # Email::Addess can't find

	 use Email::Address::Loose;
	 my ($email) = Email::Address::Loose->parse($address); # find!

	 use Email::Address;
	 use Email::Address::Loose -override;
	 my ($email) = Email::Address->parse($address);	# find!

DESCRIPTION
       Email::Address::Loose is	a Email::Address, but "parse()"	is "loose"
       same as Email::Valid::Loose.

       This module is for web developers in Japan.

       This module is needed because email address by the Japanese mobile
       carrier was not RFC compliant. Fortunately, this	evil spec was changed
       in April	2009(docomo), October 2009(kddi). However email	address	that
       taken before 2009 is still available.  So this module is	still needed.
							     _
       aa^3acaauaaaaaeLc<paragraph>a<se_tion>a1/2?aLaa@aa1/4a a(R)c'aa<<aaaac_/2(R)aaaa(C)
       RFCaxa(R)a!a1/4a<<acaa~a^1ae"+_a	aa|aa3/_aaaaEmail::Addressa<section>a aaaa!a1/4a<<acaa~a^1a"
       eaeaa3/_aaaaa(R)aca,aYa1/4aa aaaae"+-a	aaaaa<<aa3/4aa			       _
       c3/4a"a aa(R)aaaaacaa~a^1a ae<degree>e|a<<aaaaaaaa<section>aaaa>>Yaa<<aaLaaa(R)a	a1/2?ac<paragraph>a
       aaa|aaaaaaa(R)a<section>aaa(R)aca,aYa1/4a<<aa1/2?aLa|aaaae^1aaaa<section>aaaa

USAGE
	 my ($email) = Email::Address::Loose->parse('docomo..taro.@docomo.ne.jp');
	 print $email->address;	# => "docomo..taro.@docomo.ne.jp"
	 print $email;		# => "docomo..taro.@docomo.ne.jp" (as_string)
	 print $email->user;	# => "docomo..taro."
	 print $email->host;	# => "docomo.ne.jp"

       Same as Email::Address.

IMPORT OPTION
       -override
	     use Email::Address;
	     use Email::Address::Loose -override;

	     my	($email) = Email::Address->parse('docomo..taro.@docomo.ne.jp');
	     print $email->address; # => "docomo..taro.@docomo.ne.jp"

	   Call	"globally_override()"(see below) at compile time.

ORIGINAL METHODS
       globally_override()
	     Email::Address::Loose->globally_override;

	   Changes "Email::Address->parse()" into
	   "Email::Address::Loose->parse()".

       globally_unoverride()
	     Email::Address::Loose->globally_unoverride;

	   Restores override-ed	"Email::Address->parse()".

SEE ALSO
       Email::Address, Email::Valid::Loose - this module based on these.

       Email::Address::JP::Mobile - will help you too.

       #mobilejp on irc.freenode.net (I've joined as "tomi-ru")

AUTHOR
       Naoki Tomita <tomita@cpan.org>

LICENSE
       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.24.1			  2011-02-27	      Email::Address::Loose(3)

NAME | SYNOPSIS | DESCRIPTION | USAGE | IMPORT OPTION | ORIGINAL METHODS | SEE ALSO | AUTHOR | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Email::Address::Loose&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help