Typical reasons are: the input file is not found or you do not have permissions to write to the directory or clobber an existing file.move($bookFiles[$h], $dir . "/Book Chapter/" . $bookName . "/" . $b +ookFileName[-1]) or warn $!;
From the File::Copy docs:
All functions return 1 on success, 0 on failure. $! will be set if an error was encountered.You should also check the return status of the preceding mkdir.
In reply to Re: move() error
by toolic
in thread move() error
by JKasting
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |