in reply to Escape blank spaces

This definitely works:
use File::Copy qw(copy move); my $filename1 = "/tmp/blah blah blah.txt"; my $filename2 = "/tmp/TargetLocation/blah blah blah.txt"; copy( $filename1, $filename2);

At a guess you were trying to shell out to "cp", right?

You might try looking at: String::ShellQuote