it works fine on my laptop (Versa 4080H running Debian 'potato') and I've looked over the code and the newline characters are in interpolative (double) quotes, so it should work: I thought the interpreter would 'realise' that your system is Win32 and alter the output accordingly.
Thanks for the typo spotting, I removed the extra bracket.
The code you posted here has forward-slash n instead of backslash n. Perl doesn't do what you mean in that case, because maybe you really did want to output "/n". :)