Brad Paton <[EMAIL PROTECTED]> wrote on 1/22/02 at 5:53p: > Anyone have any clues why a perl script run from the command line > would stop parsing after reading a commented line? When I invoke the > script via "perl p1.pl" from the shell without a "#!/usr/local/perl" > comment on the first line, it works fine, but with it, or any other > comment, the script stops executing any code following the comment.
Perhaps you saved the file with Mac line breaks (\r) instead of Unix line breaks (\n)? If that's the case, the entire script looks like one line to perl, and anything following a comment will be parsed as part of that comment. -- John Gruber [EMAIL PROTECTED]