in reply to how do i use module vars while using use strict; ?
From the code shown in the question, it makes it appear that Getop::Std is setting package main variables? That seems a little bit magic to me. It would make more sense if they showed up at least with the package space of Getopt::Std, in which case they could be accessed via $Getopt::Std::opt_h and $Getopt::Std::opt_d. I don't know that I would trust a subroutine that messes with my package space in a context other than import.
As