$$$
$$ is the scripts process ID, $$var is a scalar reference, hence $$$ makes perl think you are trying to print out the process id as a scalar reference.
Escape the dollar signs or simply use q| | instead of qq| | then you don't need to escape them, including @
$$ is the scripts process ID, $$var is a scalar reference, hence $$$ makes perl think you are trying to print out the process id as a scalar reference.
Escape the dollar signs or simply use q| | instead of qq| | then you don't need to escape them, including @