Rosenbaum, Larry M. wrote:
> According to Camel book 2nd edition page 39,
> 
> "The underscore only works within literal numbers specified in your
> program, not for strings functioning as numbers or data read from
> somewhere else."
> 
> I suspect that when Perl processes rule files, the scores are not
> processed like "literal numbers".
> 
> L

Bingo

perl -e "for (@ARGV) { print $_, qq(\t), 1 * $_, qq(\n); }" 1 1.2 1.2_3
1       1
1.2     1.2
1.2_3   1.2

Note the last... 1.2_3 is numified as 1.2

-- 
Matthew.van.Eerde (at) hbinc.com                 805.964.4554 x902
Hispanic Business Inc./HireDiversity.com         Software Engineer
perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"

Reply via email to