- or download this
use Getopt::Std;
getopts('fs', \%opts);
- or download this
if ($opts{s}) { #do stuff }
- or download this
Global symbol "%opts" requires explicit package name.....
- or download this
{
package FOO;
use Getopt::Std;
getopts('fs', \%opts);
}