in reply to System command with quotes and variables

You can avoid impact from quotes/escapes, if you provide the system function a list instead of a scalar it will not interpolate those args.

From the perl system function documentation:
If there is more than one argument in LIST, or if LIST is an array with more than one value, starts the program given by the first element of the list with arguments given by the rest of the list. If there is only one scalar argument, the argument is checked for shell metacharacters

  • Comment on Re: System command with quotes and variables