Learning Perl, 5th Edition

B.27 Command-line Options in Your Programs

If you'd like to make programs that take command-line options (like Perl's own -w for warnings, for example), there are modules that let you do this in a standard way. See the documentation for the Getopt::Long and Getopt::Std modules.

Категории