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.