|
NAMEEmail::Address::Loose - Make Email::Address->parse() looseSYNOPSISmy $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! DESCRIPTIONEmail::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. ドコモやauがドットを連続で使ったり@マークの直前にドットを置くなど RFC外のメールアドレスを許可していましたが、Email::Addressではそれをメールアドレスと 認識しません。このモジュールはそれらを許可するようにします。 現在はそのようなアドレスは新規に取れないようですが、以前に取ったものは使い続け られているようなので、このモジュールを使っておいた方がいいでしょう。 USAGEmy ($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
ORIGINAL METHODS
SEE ALSOEmail::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") AUTHORNaoki Tomita <tomita@cpan.org>LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |