next up previous contents
Next: How Are the Options Up: Practical Perl Programming Previous: Summary

Perl Command-Line Options

Perl has a wide range of command-line options or switches that you can use. The options are also called switches because they can turn on or turn off different behaviors. A thorough knowledge of the command line switches will enable you to create short one-time programs to perform odd little tasks. For example, the -e option lets you specify a line of code directly on the command line instead of creating a script file. You use the -l option to change the line endings in a text file.


 

dave@cs.cf.ac.uk