Jan 022010
How to perform syntax check for Perl program
Answer:
Assume you have a Perl script test.pl, try run the command
perl -c test.pl
Syntax error will be displayed without running the code actually.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to perform syntax check for Perl program
Answer:
Assume you have a Perl script test.pl, try run the command
perl -c test.pl
Syntax error will be displayed without running the code actually.