Changeset 30013

Show
Ignore:
Timestamp:
02/13/09 18:35:14 (4 years ago)
Author:
miyagawa
Message:

shuts up File-ShareDir? warnings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Encode-JP-Mobile/trunk/lib/Encode/JP/Mobile/Character.pm

    r6499 r30013  
    4141sub _load_map { 
    4242    $map ||= +{ 
    43         map { $_, do( dist_file( 'Encode-JP-Mobile', "${_}-table.pl" ) ) } 
     43        map { $_, do( _dist_file( 'Encode-JP-Mobile', "${_}-table.pl" ) ) } 
    4444          qw/docomo kddi softbank/ 
    4545    }; 
     
    103103 
    104104my $fallback_name_cache  = do { 
    105     my $src = dist_file('Encode-JP-Mobile', 'convert-map-utf8.pl'); 
     105    my $src = _dist_file('Encode-JP-Mobile', 'convert-map-utf8.pl'); 
    106106    do $src; 
    107107}; 
     
    139139} 
    140140 
     141 
     142sub _dist_file { 
     143    local $^W = 0; no warnings 'uninitialized'; # shuts up File-ShareDir warnings 
     144    dist_file(@_); 
     145} 
     146 
    1411471; 
    142148__END__