in reply to script-problem

In addition to gellyfish's excellent response, I'd like to see the output of these two commands:

od -cx print.pl type perl

In the od -cx output I'd expect to see \n but not \r -- is it possible the file print.pl is in DOS format?