# <BE:xxxxxx:L> -> BE:xxxxxx-##
sub rep {
my $str = '';
for (1..$_[0]) {
$str .= '#';
}
$str;
}
while (<>) {
$_ =~ s/<BE:(\d+):(\d+)><>/'BE:'.$1.'-'.rep($2).'<>'/e;
print;
}
----------------------------------------------------------------------
dat への記録は従前の BE:xxxxxx-## のままで,JavaScript で
# の数をマイレージランクに変換するようにすれば,dat の形式も
従前のものと互換のままでできたんでしょうけど......