How does one set default values of command line arguements?
use Getopt::Std; my %opt; my $opt{d} = "x"; my $opt{a} = "0"; my $opt{s} = "0"; my $opt{e} = "x"; getopts("dase:", \%opt);
Using something like this returns a syntax error at my $opt{d}="";. What have I done wrong?
Neil Watson
watson-wilson.ca
In reply to Setting default values in getopts by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |