G'day finfan,
You need to change the hash argument
getopts('f:', %opts);
to a hashref argument
getopts('f:', \%opts);
As shown in the Getopt::Std documentation.
— Ken
In reply to Re: GetOpts not working:
by kcott
in thread GetOpts not working:
by finfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |