in reply to Re: ^M chars in output file
in thread ^M chars in output file

Or just remove all ^M with a one-liner
perl -pi -e 'tr[\r][]d' file

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});