in reply to GetOpts not working:

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

Replies are listed 'Best First'.
Re^2: GetOpts not working:
by finfan (Acolyte) on Dec 08, 2015 at 18:33 UTC
    Thanks, the was it.