in reply to Re: Getopt::Std dies or returns empty var
in thread Getopt::Std dies or returns empty var

It quite misleading to mention "use strict". The OP's code isn't failing because of the "use strict" - it will still fail if you remove the "use strict". The problem is the lexical declaration of "$opt_u" - that one is not available to "Getopt::Std". Declaring the variable with "our" solves the problem, regardless whether "use strict" remains present or not.

Abigail

  • Comment on Re: Getopt::Std dies or returns empty var