in reply to Help!! Premature ending of script headers?

Just wondering why you have the following at the top of your code (i.e. two shebang lines):

#!/usr/bin/perl use 5.006; #! /usr/bin/perl

... or whether that's just a typo from you entering it on the forum. If those lines are both in your code, then there's a reasonable chance that may be the cause of your problem. (or, at a minimum, it would be a good thing to take care of ... i.e. delete the second one)

Replies are listed 'Best First'.
Re^2: Help!! Premature ending of script headers?
by chromatic (Archbishop) on Oct 13, 2011 at 20:44 UTC
    If those lines are both in your code, then there's a reasonable chance that may be the cause of your problem.

    Isn't the second occurrence effectively a comment though?


    Improve your skills with Modern Perl: the free book.

      Good point ... I hadn't thought of that ... doh! ... I guess maybe it would treat it as a commment ...

      Now I'm going to have to try it out for myself and see :-)