in reply to move() error
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: move() error
by JKasting (Novice) on Feb 26, 2010 at 18:25 UTC | |
by toolic (Bishop) on Feb 26, 2010 at 18:52 UTC | |
by JKasting (Novice) on Feb 27, 2010 at 21:08 UTC | |
by almut (Canon) on Feb 27, 2010 at 23:23 UTC | |
by Anonymous Monk on Feb 28, 2010 at 02:08 UTC | |
by Anonymous Monk on Feb 26, 2010 at 18:29 UTC |