in reply to File Copying problem
But perhaps you'd find it more convenient (not to mention more portable) to use forward slashes:copy( "$original_site\\$_", "$second_site\\$_" ) or die "Failed to copy $_: $!\n";
Yes, this works even on Windows! (Note, I improved the error message by including the name of the file for which copy failed.)copy( "$original_site/$_", "$second_site/$_" ) or die "Failed to copy $_: $!\n";
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File Copying problem
by halley (Prior) on May 13, 2003 at 23:45 UTC | |
by tye (Sage) on May 14, 2003 at 02:41 UTC | |
by jdporter (Paladin) on May 14, 2003 at 12:24 UTC |