in reply to copy files
These lines are the problem:
You're assigning a path to an array, which will put it in the first array element. You're then assigning that array to $dir in scalar context, which is assigning the size of the array (1) to $dir.my @directory = join "\\", @path[0,5,6]; my $srcfile; my $dir = @directory;
The use of an array for @directory doesn't quite make sense to me here unless you later intend to process a list of directories, which I don't see code for.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: copy files
by skyler (Beadle) on Feb 24, 2003 at 20:49 UTC |