Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 80374
Status: resolved
Priority: 0/
Queue: Net-ISC-DHCPd

People
Owner: JHTHORSEN [...] cpan.org
Requestors: barzog [...] telecom.by
Cc:
AdminCc:

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



Subject: Net::ISC::DHCPd::OMAPI debugging not working
Date: Wed, 24 Oct 2012 12:00:22 +0300
To: bug-Net-ISC-DHCPd [...] rt.cpan.org
From: Oleg Gawriloff <barzog [...] telecom.by>
It seems that debug option for this module not working (or its not clear from doc how to use it). #!/usr/bin/perl -w BEGIN { Net::ISC::DHCPd::OMAPI::_DEBUG = sub { 1 } } use Net::ISC::DHCPd; exit(0); gives following (regardless of place BEGIN string in code): Can't modify constant item in scalar assignment at ./dhcpd-leases.pl line 43, near "} }" BEGIN not safe after errors--compilation aborted at ./dhcpd-leases.pl line 43 (#1) -- Signed, Oleg Gawriloff.
I've changed how debug output is enabled: It is now enabled using an environment variable, before loading the module. See https://github.com/jhthorsen/net-isc- dhcpd/commit/b1c4ba7f4065506cc40c94d3d88cab274ef1668a for the diff. The change will be uploaded to CPAN before 26th of October.