Because you haven't enclosed the file names with " " or ' ' perl gives the illegal variable error as it thinks that the file name is supposed to be a variable.
You can't create an array like that - only perl variables can be ($var, $bla), everything else needs to be enclosed by ' ' or " " (or use qw)
So that is the cause. Upgrading perl is a good idea though.
You can't create an array like that - only perl variables can be ($var, $bla), everything else needs to be enclosed by ' ' or " " (or use qw)
So that is the cause. Upgrading perl is a good idea though.