use Benchmark;
use File::Basename;
use Time::Local 'timelocal_nocheck';
+use POSIX qw(setlocale LC_NUMERIC);
+setlocale LC_NUMERIC, "";
$VERSION = '1.0';
my $t0 = Benchmark->new;
+# Get the decimal separator
+my $n = 5/2;
+my $num_sep = ',';
+$num_sep = ' ' if ($n =~ /,/);
+
# get the command line parameters
my $result = GetOptions (
"l|logfile=s" => \$logfile,
my $text = reverse $_[0];
- $text =~ s/(\d\d\d)(?=\d)(?!\d*\.)/$1,/g;
+ $text =~ s/(\d\d\d)(?=\d)(?!\d*\.)/$1$num_sep/g;
return scalar reverse $text;
}