in reply to Namespace woes

You could investigate using Exporter to export the variables into your namespace.

Or you could put the require in a BEGIN block:

BEGIN { require 'const.pl' }
which loads the library at compile-time, so the variables are declared.