in reply to Variables from modules

Did you perhaps forget to put a package declaration in test.pm?