in reply to Variables in system calls

I'd put the string into a variable, then print that to see what the command actually being passed is. I assume you also tried it from the command-line without a perl script.