use strict;
use warnings;
-my $URL = 'https://satomichan.jp/gitweb/?p=tel2ma/.git;a=blob_plain;f=tel2ma.pl';
+use FindBin;
+chdir $FindBin::Bin or die;
header();
-open(my $wget, '-|', "wget '$URL' -q -O -") or die;
+open(my $PL, '../tel2ma.pl') or die;
print "function get_ma_info(tel) {\n";
-foreach my $line (<$wget>) {
+foreach my $line (<$PL>) {
next unless $line =~ /^__DATA__/ .. 1;
next if $line =~ /^__DATA__/;
tel2ma.js 日本国内電話番号 -> 市外局番・MA・市町村 取得プログラム
-Copyright 2025 FUKUDA Satomi (https://satomichan.jp/about_tel2ma)
+Copyright 2025-2026 FUKUDA Satomi (https://satomichan.jp/about_tel2ma)
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.