in reply to Copying files
You've got a typo in the copy() line above, using \ instead of /. However, you also repeated test.gif twice. Finally, you should check the return code from copy to let perl tell you what is wrong. Something like this:my $location = "/home/name/public_html/header.gif"; my $temp_folder_path = "/home/name/public_html/test.gif"; copy("$location","$temp_folder_path\test.gif");
my $location = "/home/name/public_html/header.gif"; my $temp_folder_path = "/home/name/public_html/test.gif"; copy($location, $temp_folder_path) or die "copy failed: $!";
|
|---|