# Module1 use Getopt::Long::Framework accept => ...; . : # Module2 use Getopt::Long::Framework accept => ...; . : # Module3 use Getopt::Long::Framework accept => ...; . : # First call to getOpt processes @ARGV. $val = Getopt::Long::Framework::getOpt(...);