in reply to copy files to the nonpermanent directory
Then try the copy with command with die around it.use File::Spec; $dir1=catdir(rootdir(),$ver,$client,"qa"); # and for copy $old=catfile($dir,$file); $new=catfile($dir1,$file);
Note what I added to the die. What is copied to where is a good idea, as it shows to you what actually is happening. Similar thing when trying to open files (print what is actually being tried). I've fixed a lot of my own mistakes like this ;).copy ($old,$new) or die "Unable to copy '$old' to '$new': $!";
use File::Spec::Functions (qw/catdir rootdir catfile/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: copy files to the nonpermanent directory
by Nelly (Novice) on Mar 24, 2004 at 12:16 UTC | |
by bart (Canon) on Mar 24, 2004 at 12:31 UTC | |
|
Re: Re: copy files to the nonpermanent directory
by Nelly (Novice) on Mar 25, 2004 at 09:39 UTC |