in reply to Issue with backticks in ActiveState

print `$cmd` . "\n";
That seems like a strange use of backticks. Backticks are used to collect output from a command, and you are just passing the output to print. Have you tried using system?
system $cmd;