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.