- or download this
while ($string=~m{<(ths|193)>|\.}g) {
$count=$count+($tbsz * 0.25);
}
- or download this
my %factor;
$factor{ths} = $factor{193} = 0.25;
...
$count += $factor{$1};
}
$count *= $tbsz;
- or download this
my $charclass = join "", grep {1 == length} keys %factor;