http://www.perlmonks.org?node_id=769075


in reply to Re^2: require, globals, and some various mayhem
in thread require, globals, and some various mayhem

If you had them in separate files before, it couldn't have worked. Maybe you weren't running the code you thought you were.