I was sent a perl script over mail and asked to run it .I placed it on my local drive as is but when I tried to run the script it shows me
/usr/bin/perl^M: bad
dos2unix in Perl:
perl -pi -e 'tr/\r//d' file.txt