http://www.perlmonks.org?node_id=484621


in reply to Getopt::Long mystery

Have you declared the -t option in the first place? Perhaps changing 'test|n' to 'test|t' will do the trick? :-)

Update
Forget about what I said above. I don't think that's what you are asking about.

Replies are listed 'Best First'.
Re^2: Getopt::Long mystery
by Llew_Llaw_Gyffes (Scribe) on Aug 17, 2005 at 23:10 UTC

    Abbreviation should still work, no?  I'm using 'test|n' to make '-n' a synomym for '-t'.  An example with a more extensive set of options employed (which, perhaps, I should put in there instead as illustration) will show that not just the -t option, but ALL options, are unrecognized.

    I'll update the example.