I know this isn't really the place for this topic but I didn't find any suitable as General is for none-perl/programming stuff.

Anyway, is there any Perl validation program or webpage? I would at least want to know on which line the error is.

It's very frustrating (as probably everyone knows, at least those how has done anything else than HTML, which won't mind errors too much, BTW, I hate doing WML, if you've have <br> instead of <br/> the whole page collapses ) when you've just done lots of new code and the script won't work. You search for the error in your newly done code and the error is just that you've by mistake somewhere else written: prnit "$whatever";

$ cat script.pl#!/usr/bin/perl prnit "This should cause an error\n"; $ perl -c script.plString found where operator expected at script.pl line 2, near "prnit "This should cause an error\n"" (Do you need to predeclare prnit?) syntax error at script.pl line 2, near "prnit "This should cause an error\n"" script.pl had compilation errors.</pre><HR></BLOCKQUOTE>

Also, I strongly advise regularly using perl's -w switch (and use strict; for that matter) which catches many silly errors.

$ cat script.pl#!/usr/bin/perl -w prnit "This should cause an error\n"; $ ./script.plUnquoted string "prnit" may clash with future reserved word at ./script.pl line 2. String found where operator expected at ./script.pl line 2, near "prnit "This should cause an error\n"" (Do you need to predeclare prnit?) syntax error at ./script.pl line 2, near "prnit "This should cause an error\n"" Execution of ./script.pl aborted due to compilation errors.</pre><HR></BLOCKQUOTE>

Programming with -w on takes some getting used to though as it can be really fussy. :-)