in reply to GetOptions non-option callback

According to Getopt::Long, in order for this to work, you need to configure it for "permute". Something like:

Getopt::Long::Configure("permute");
Have you done this?

Replies are listed 'Best First'.
Re^2: GetOptions non-option callback
by anadem (Scribe) on Feb 24, 2005 at 20:31 UTC
    Thanks for that: embarrassingly I had not used permute, despite seeing it in the docs. But having added it has made no difference: the sub still isn't called (though @ARGV is empty after GetOptions) and "Unknown option: " is still printed to console.