in reply to perl system command

you're using a double quoted perl string, it interpolates, try a single quoted string