Oh yes indeed. My installed version, 0.48, does have the problem with zero
and I misread the current version. I can only console myself by the fact
that a related bug was found due to my error.
Thank you,
Dean
On Fri, 17 Feb 2006, Olaf M. Kolkman via RT wrote:
Show quoted text>> In Net/DNS.pm typesbyval strips leading zeroes from the value. This
>> causes a problem when the value is zero. This is a one line fix, patch
>> against 0.55 attached.
>
> The regexp will strip all leading zeros but the last digit will
> match, even when it is a zero.
>
> Try print Net::DNS::typesbyval("0") and print Net::DNS::typesbyval
> ("0000")
>
> These will both return "SIGZERO".
>
> The error message is returned when the value you pass is undefined.
> I think it is better if we add:
>
> die "Net::DNS::typesbyval() argument is not defined" unless
> defined $val;
>
> Do correct me when misguided.
>
> --Olaf
>
>