use Getopt::Long ':config', 'gnu_getopt'; # or, during runtime: # Getopt::Long::Configure('gnu_getop');