Linux Ask!

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.

  1. How to perform syntax check for Python program
  2. How to perform syntax check on a bash script?
  3. Perform syntax check to PHP files
  4. Enable Perl strict mode to restrict unsafe constructs
  5. Save program output and error to different files

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>