|
123456789 を3文字づつ、","にて区切る。
123456789 → 123,456,789
●Sample
require "numcom.pl";
#対象の文字列
my $number ="123456789";
#区切り文字
my $kugirimoji =",";
#区切る間隔
my $kankaku =3;
$result = &Numcom( $number, $kugirimoji, $kankaku );
#対象の文字列
# $number = "123456789"
#結果
# $result = "123,456,789"
---------------------------------------------------
|