lln.pl untested

filter: Statementstmt 0.0% 0 / 10 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use Scalar::Util qw(looks_like_number);
2 use strict;
3  
4 $\ = "\n"; $, = "\t";
5  
6 for (qw/
7 10
8 10k
9 k10
10 10.05
11 10.05k
12 1,000.05
13 k10.05
14 /) {
15 print $_, (looks_like_number($_) ? "x" : "-"), 0 + $_;
16 }