in reply to Get the string from the module

The use of strict forces us to think about where variables should be declared. In this case, that may have been enough to solve the problem yourself.
Bill