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

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Posted At: Tuesday, June 21, 2005 5:22 PM
> Posted To: sa-users
> Conversation: Net::DNS problem?
> Subject: RE: Net::DNS problem?
> 
> Irina wrote:
> > I decided to downgrade it by downloading TAR.  Installed
> > prerequisites and the module itself just fine.
> >
> > Running spamassassin --lint and see the complaint about version of
it
> > is not numeric (0.49_03), therefore it can not compare 2 versions
> >     Argument "0.49_03" isn't numeric in numeric lt (<) at
> > /usr/local/lib/perl5/site_perl/5.8.6/Mail/SpamAssassin/Dns.pm line
> > 1230
> 
> But 0.49_03 IS numeric.  Perl allows embedded _'s in numeric literals.
> 
> Even if you put it in quotes - "0.49_03" - it's STILL numeric.
> 
> perl -e "print 1 if 1 < 1.2_3"
> 1
> 
> perl -e "print 1 if 1 < '1.2_3'"
> 1
> 
> --
> 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