ActiveState Community

Can't create file

Posted by sluttysysadmin on 2009-10-05 08:40
OS: Linux

Hello,

I am writing a perl script which should create a file in /var/named directory.

I am using the following line in my script,

open FILE, "+>", "/var/named/$domain.db";

The script is creating a file with ".db" extension but not as "domain.db".

I am passing the value for the variable $domain from a HTML page.

Can anyone please help me to fix this out ?

Thanks in advance.