in reply to Passing data to Getopt::Long
yes, you could do something like that, but why not call Getopt::Long directly? I do not see much added value in having an intermediate layer here.