in reply to Trouble finding a subroutine

I'm trying to use something like the code below to check an argument to a perl program before loading any modules.

Unless your modules are doing really crazy things, a reasonable number of modules will load on any modern* machine in less time than a human can register. In other words, don't worry about it, use Getopt::Long, and be about your business.

*: "Reasonable" as in less than 100. "Modern" as in newer than 1995.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.