
rovf
Veteran
Jun 13, 2011, 11:20 PM
Post #7 of 8
(557 views)
|
|
Re: [nibalan] No such file or directory error
[In reply to]
|
Can't Post
|
|
The error likely means that /users/$login/$viewtag does not exist. As an experiment, you could try to shell out: my $dir="/users/$login/$viewtag"; $|=1; print "About to create file in '$dir'...\n"; if(!open(MANUALANS,'>',"$dir/manualans.pl")) { print "ERROR: $!\n"; system("ls -la $dir"); system; die; } This would put you on the shell in exactly that context which existed in the program, and you could try to create the file manually and see whether you maybe get a different error. BTW, when replying on these suggestions, you should always include the few lines of code which are of interest, plus copy and paste the actual output you receive.
|