in reply to Can't create file
The variable $! contains the operation system error message, in case something went wrong ;-)open FILE, "+>", "/var/named/$domain.db" or die "Could not open file $domain.db: $!\n";
Secondly, maybe you should check if the variable $domain is defined and has content?
to ask a question is a moment of shame
to remain ignorant is a lifelong shame
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't create file
by sluttysysadmin (Initiate) on Oct 05, 2009 at 16:00 UTC | |
by insaniac (Friar) on Oct 05, 2009 at 16:05 UTC | |
by sluttysysadmin (Initiate) on Oct 05, 2009 at 16:16 UTC | |
by Anonymous Monk on Oct 05, 2009 at 16:31 UTC | |
by ikegami (Patriarch) on Oct 05, 2009 at 16:37 UTC | |
by insaniac (Friar) on Oct 05, 2009 at 16:33 UTC |