Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Compare zone files in directory with what is listed in named.conf

by fisher (Priest)
on May 15, 2013 at 20:15 UTC ( #1033736=note: print w/ replies, xml ) Need Help??


in reply to Compare zone files in directory with what is listed in named.conf

Just skip it.

open F, "named.conf.local" or die "$!"; while(<F>) { chomp; s/^[ \t]*file "db\.(.*)";/$1/ or next; next if /db.cache/; push @lines, $_; } close F;
and
opendir D, "$directory" || die "Cant: $1"; my @list = grep /db/, readdir(D); closedir D;


Comment on Re: Compare zone files in directory with what is listed in named.conf
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (17)
As of 2014-07-28 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (206 votes), past polls