GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  EMAIL::ADDRESS::LOOSE (3)

.ds Aq ’

NAME

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

CONTENTS

SYNOPSIS



  my $address = read..rfc822.@docomo.ne.jp; # Email::Addess cant 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.

XXXXauXXXXXXXXXXXX@XXXXXXXXXXXXXXX RFCXXXXXXXXXXXXXXXXXXXXEmail::AddressXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 EMAIL::ADDRESS::LOOSE (3) 2011-02-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.