in reply to /usr/bin/perl^M: bad interpreter:

I have the same problem when I execute ./program.pl but this problem fixed when I execute perl program.pl Try...