richsark
asked on
Need help with this Perl Script ( missing Array )
Hello , I have this script that when I run it against this zone file I get this error
==> ms-fix-ad-rrs.pl CMS.LAN.db -v Internal
Can't use an undefined value as an ARRAY reference at /local/bin/ms-fix-ad-rrs.p l line 110, <> line 1709.
Can anyone have a look to see whats the issue?
ms-fix-ad-rrs-.txt
CMS.LAN.txt
==> ms-fix-ad-rrs.pl CMS.LAN.db -v Internal
Can't use an undefined value as an ARRAY reference at /local/bin/ms-fix-ad-rrs.p
Can anyone have a look to see whats the issue?
ms-fix-ad-rrs-.txt
CMS.LAN.txt
ASKER
Ok. So what can I do to make this work ?
What is your expected output?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok. Just want it to run without an array issue. Can that me done ? Or have the script compensate for capital letters ?
My #39969334 post shows how to compensate for capital letters in $zone.
However, since you haven't explained what your output expectation is, I can't say if there are any other adjustments that will be need to be applied.
However, since you haven't explained what your output expectation is, I can't say if there are any other adjustments that will be need to be applied.
More specifically, CMS.LAN (which is what $zone resolves to) is not a key of the %rrs hash.