Subject: | Unable to create empty Net::DNS::Packet |
When working with Net::DNS... I'm trying to create an empty
Net::DNS::Packet object (so I can populate it with things iteratively)
and the code is leaving me no way to create one with 0 questions.
If I say:
my $packet = Net::DNS::Packet->new();
$packet is now a question packet requesting the '' (empty string) domain
name IN class A type.
To remove this I have to then:
$packet->pop('question');
This really doesn't look good in code, so I'd suggest that a void
argument list should create an empty packet.