I also prefer to use 'getopts' over 'getopt' since it requires you to list all valid options, and specify whether each option takes an argument (such as your increment value).use Getopt::Std; use strict; my %opt; getopt('i', \%opt); print "Increment value is $opt{i}\n";
In reply to Re: Using getopt
by impossiblerobot
in thread Using getopt
by idunno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |