in reply to copy files from one directory to another
What is this? Why do you localize @ARGV? Do you want to slurp the file? If so why?$file[$i]=do{local(@ARGV,$/)=$files[$i];<>};
This creates a directory in the current working directory. Is that where you want it to be created?mkdir("$name",0777)||print $!;
Are you sure you want $file[$i] (not sure what that contains) and not $files[$i] (the current filename).$oldlocation="/home/newbie/ta/$file[$i]";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: copy files from one directory to another
by luckysing (Novice) on Aug 03, 2010 at 21:20 UTC |