43

Getting Started
Perl Command Line Basics

  • Checking the syntax of your script

      % perl -c MyScript

  • Checking the sanity of your script

      % perl -w MyScript

  • Enabling your script to run (UNIX)

      % chmod u+rx MyScript

  • Running your script (UNIX)

      % MyScript