in reply to Passing values from Perl script to shell script
May be of interest; I came across String::ShellQuote, very nice, escapes anything..
use String::ShellQuote 'shell_quote'; my $cmd = sprintf 'cp %s %s', shell_quote($weirdpath), shell_quote($weird2); `$cmd`;
In Section
Seekers of Perl Wisdom