start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.87 Getopt::Std Chapter 8
Standard Modules
Next: Reference: getopts
 

getopt

getopt ('

switches

'[, \%

opts

])

switches is a string of the command-line options that take arguments. For each option, getopt sets $opt_ x (where x is the switch) to the value entered as an argument. If \%opts is specified, it is a reference to a hash in which getopt sets the key to the name of the switch and the value to the argument (and the $opt_ variables are not set).


Previous: 8.87 Getopt::Std Perl in a Nutshell Next: Reference: getopts
8.87 Getopt::Std Book Index Reference: getopts

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.