require "getopts.pl"; &Getopts('a:bc'); # -a takes arg. -b & -c not. # Sets opt_* as a side effect.