• Home
  • Perl
  • Array
  • CGI
  • Class
  • Data Type
  • Database
  • File
  • GUI
  • Hash
  • Language Basics
  • Network
  • Regular Expression
  • Report
  • Statement
  • String
  • Subroutine
  • System Functions
  • Win32
  • XML

Executing the Script : Perl Command « Language Basics « Perl

  1. Perl
  2. Language Basics
  3. Perl Command




Executing the Script

  

$ perl -c scriptname

   
    
  

Related examples in the same category

1.A program that uses the -0 option.
2.A program that uses the -l option.
3.Edit files using the -i option.
4.The -c Switch checks the Perl syntax without actually executing the Perl commands
5.The -e switch executes Perl statements at the command line instead of from a script.
6.The -n Switch: print the contents of a file or search for a line that contains a particular pattern
7.The -w option passed to the perl command generates a warning about the code itself.
8.Using -e option to execute the perl statement
9.Using /e modifier to evaluate
10.Using the -n option.
11.Using two statements with -e option
12.Using variable with -e option
13.'#!/usr/bin/perl -w ' tells the perl command to turn on extra warnings with the -w option.
14.An example of the -a option.
15.Perl can take its input from a file and send its output to a file using standard I/O redirection.

java2s.com  | Email:info at java2s.com | © Demo Source and Support. All rights reserved.