On 13/05/2013 18:08, David Precious wrote:
The usual way to catch exceptions is with an eval block or Try::Tiny
etc.
Basic example:
my $source_address = eval { $res->query(); };
if ($@) {
# an error occurred - $@ will contain the message
# do something appropriate here
}
Testi
On Mon, 13 May 2013 08:53:13 -0700
Noah wrote:
> Hi list,
>
>
> When Net::DNS resolved name is not found my script dies. How can I
> allow for my script to continue on even if there is a failed DNS
> query?
The usual way to catch exceptions is with an eval block or Try::Tiny
etc.
Basic exam
On 05/13/2013 10:53 AM, Noah wrote:
When Net::DNS resolved name is not found my script dies. How can I
allow for my script to continue on even if there is a failed DNS query?
Impossible to say -- you do not show enough to know what is happening
AFTER the block shown.
--
To unsubscribe, e-ma
Hi list,
When Net::DNS resolved name is not found my script dies. How can I
allow for my script to continue on even if there is a failed DNS query?
Just cutting and pasting the relevant lines
use Net::DNS;
my $res = Net::DNS::Resolver->new;
my $v6_source_hostname = "<<>>";