Created
June 7, 2011 09:49
-
-
Save kanonji/1011971 to your computer and use it in GitHub Desktop.
perl ./once.pl is ok. perl ./twice.pl is not ok. Use 0.20110401 of Number::Phone::JP.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Bar; | |
use strict; | |
use warnings; | |
use utf8; | |
use Number::Phone::JP; | |
sub invoke { | |
my ( $self ) = @_; | |
my $ins = Number::Phone::JP->new; | |
my $result = $ins->set_number('03-5321-1111')->is_valid_number; | |
warn scalar keys %Number::Phone::JP::TEL_TABLE; | |
return $result; | |
} | |
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Foo; | |
use strict; | |
use warnings; | |
use utf8; | |
use Number::Phone::JP; | |
sub invoke { | |
my ( $self ) = @_; | |
my $ins = Number::Phone::JP->new; | |
my $result = $ins->set_number('03-5321-1111')->is_valid_number; | |
warn scalar keys %Number::Phone::JP::TEL_TABLE; | |
return $result; | |
} | |
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use utf8; | |
use Foo; | |
my $result = Foo::invoke(); | |
warn $result; | |
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use utf8; | |
use Foo; | |
use Bar; | |
my $result = Foo::invoke(); | |
warn $result; | |
my $result2 = Bar::invoke(); | |
warn $result2; | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment