Premature end of script headers

Error:
Premature end of script headers

Solution:
– change the file permission to 755
– add -w to the first line (i.e. #!/usr/bin/perl -w)