Help for this page

Select Code to Download


  1. or download this
    my %prefixes = ( '04025' = [ 'Region1, Region2, Region3' ],
                     ...
                   );
    
  2. or download this
    my ($pref5, $pref4, $pref3, $pref2) = map { substr( $phone, 0, $_ ) }
                                              (5, 4, 3, 2);
    ...
                                substr( $phone, 0, $prefix_length),
                                substr( $phone, $prefix_length),
                          );