Did you ever face this problem?
I searched the net and found a solution, it's because of the new line characters added after downloading the script.
Run the below commands on the command line to make your script work.
$perl -pi.bak -e 's/\r\n/\n/g' myfile.pl
$perl -pi.bak2 -e 's/\r/\n/g' myfile.pl
This will take the back up of the myfile.pl and will replace both Mac End Of Lines and MS End Of Lines into Unix like ones.
No comments:
Post a Comment