in reply to Find, copy & rename
Do you mean to iterate through each of the non-directories? Then you probably meant foreach my $get_files (grep { !-d } @process_file)my $get_files = grep { !-d } @process_file; foreach my $get_files (@process_file) {
} elsif (rename "$newdir/$get_files", "$newdir/$newfile") { I'm not a win32 Perl user, but I'm not convinced using forward slashes will work here.
Also, I'm not sure what's the reasoning with the assignments from scalar to array and back to scalar again at the top of your code.
blokhead
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Find, copy & rename
by skyler (Beadle) on Feb 24, 2003 at 05:32 UTC | |
by CountZero (Bishop) on Feb 24, 2003 at 12:30 UTC |