Skip Menu | will be shut down on March 1st, 2021.

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

Report information
The Basics
Id: 86859
Status: new
Priority: 0/
Queue: Net-DNS-ZoneFile-Fast

Owner: Nobody in particular
Requestors: FANY [...]
Cc: 14232855 [...]

Bug Information
Severity: Normal
Broken in:
  • 1.12
  • 1.21
Fixed in: (no value)

CC: 14232855 [...]
Subject: on_error handler broken when file is not accessible
Download (untitled) / with headers
text/plain 1006b
First of all, thank you very much for this fine module which was already very useful to me in several projects! There is only one small annoyance regarding the on_error handler: Since it is initialized not until after trying to open the zone file, it does not work when opening the file fails. E.g. … $ perl -MNet::DNS::ZoneFile::Fast -E Net::DNS::ZoneFile::Fast::parse( file => shift, on_error => sub { say "on_error called: @_" }, soft_errors => 1, zone => "" ); say "OK"' /etc/passwd on_error called: 1 syntax error OK … works as expected, but … $ perl -MNet::DNS::ZoneFile::Fast -E 'Net::DNS::ZoneFile::Fast::parse( file => shift, on_error => sub { say "on_error called: @_" }, soft_errors => 1, zone => "" ); say "OK"' /etc/shadow cannot open /etc/shadow: Permission denied, line 0 … does not: The on_error handler does not get called, and the script dies though soft_errors is set. Please let me know if you are interested in a patch for this issue. Regards, fany

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to