Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 81779
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: Mark.Martinec [...] ijs.si
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.69
Fixed in: (no value)



Subject: Usage: OPT has no "class" attribute, please use "size()"
This used to work in Net::DNS 0.68, but reports an error in 0.69 and 0.70: $ perl -le ' use Net::DNS; $r=Net::DNS::Resolver->new; $r->udppacketsize(4096); $r->send("20120113._domainkey.google.com","TXT")->print' Usage: OPT has no "class" attribute, please use "size()" at /usr/local/lib/perl5/site_perl/5.16.2/mach/Net/DNS/Resolver/Base.pm line 1126.
From: rwfranks [...] acm.org
On Fri Dec 07 12:52:05 2012, Mark.Martinec@ijs.si wrote: Show quoted text
> This used to work in Net::DNS 0.68, but reports an error > in 0.69 and 0.70: > > $ perl -le ' > use Net::DNS; $r=Net::DNS::Resolver->new; > $r->udppacketsize(4096); > $r->send("20120113._domainkey.google.com","TXT")->print' > > Usage: OPT has no "class" attribute, please use "size()" > at /usr/local/lib/perl5/site_perl/5.16.2/mach/Net/DNS/Resolver/Base.pm > line 1126.
This is a warning, which is only given once. The actual behaviour is unchanged. The intention is to encourage end users to modify their code to use size() instead and not need to remember that class() has some non-obvious meaning. In this instance, we shot ourselves in the foot!
A fix is committed and will be in the 0.71 release.