|Think about Loose Coupling|
Re: Net::DNS::ZoneFile problemby l2kashe (Deacon)
|on Jul 23, 2003 at 16:09 UTC||Need Help??|
About the error messages
The errors about Global symbol <insert var here> are coming from the strict module. Any variable that you want to use must be declared in one of a few ways. Namely you can do
Each one has its own usage, and there are some gotchas. See your perl documentation about them
The error Multidimensional syntax $zone, $root not supported at ./ptr.pl line 24. is stating that the syntax of your line simply is not correct. What you are handing the readfh method is a scalar and then an anonymous array with 2 elements the first being nothing and the second being $root (which is not shown in your code, so I assume doensn't exist).
The documentation for that module isnt the best, but I will look over the source and see if I can't help out a touch more. Welcome to Perl :)
Update:Ok so there were a few isues, and looking over the source here are the issues.
This code works. Mainly the issue was the $root var is an optional argument to the readfh method. If you didn't define it, then it used the current directory as the base directory to look for data in. So taking it as an arg for the wanted cleared it right up.