in reply to Re: Permission problem in creating directory!
in thread Permission problem in creating directory!

chmod 0777, $dump_dir is preferable to `chmod 777 $dump_dir`.  No backticks needed; chmod is a Perl builtin.

(This is just a side-note.  umask is the correct solution.)