Perl is a command line interpreter that used to execute the Perl script programs

Perl command line options

perl -e

 perl -e 'print "Hello welcome\n"'

perl -c This allows you to compile the perl script without executing a program.

It shows if any syntax and compile errors with this.

perl -c test.pl
  • Perl version
perl -v
perl -V
  • Perl -w option
perl -w

perl -w option gives a warning message displayed about the perl script program