in reply to Passing Parameters to subroutine

When passing a parameter via the command line, getopts seems to pass the parmeter on the cli followed by a 1 to the identified subroutine. I would be expecting ...

This is documented behavior, since it's a boolean option the 1 represents that the option was passed. Also, as discussed last time, the only thing the subroutines called by Getopt::Long should be doing is storing the fact that the options were passed to the program. If you use the module as intended, I think you'll have an easier time.