Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1033736]
help
Chatterbox?
[Eily]: yay well the one in Nancy is ... hu, a station?
[LanX]: no wonder he prefers to walk ..
[erix]: heh
LanX MUCHO FUN

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2017-12-13 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (369 votes). Check out past polls.

    Notices?