But when I run the program with script.pl -i 2, $opt_i doesn't have a value. What am I doing wrong? Thanks.use Getopt::Std; use strict; my $opt_i; getopt('i'); print "Increment value is $opt_i\n";
In reply to Using getopt by idunno
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |