| 1 | package Number::ZipCode::JP::Table; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '0.20260731'; | |
| 7 | |||
| 8 | 2 | ▶ | no warnings 'once'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 2 | our %ZIP_TABLE = Number::ZipCode::JP::_merge_table( | |
| 11 | qw/ Number::ZipCode::JP::Table::Area Number::ZipCode::JP::Table::Company / | ||
| 12 | ); | ||
| 13 | |||
| 14 | 3 | ▶ | sub import { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 15 | 3 | my $class = shift; | |
| 16 | 3 | my $pkg = caller(0); | |
| 17 | 2 | ▶ | no strict 'refs'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 3 | %{"$pkg\::ZIP_TABLE"} = %ZIP_TABLE; | |
| 19 | } | ||
| 20 | |||
| 21 | 2 | 1; | |
| 22 | __END__ | ||