in reply to Exporter issues

Apparently, you're hitting a circular dependency. (Does Module use Module::Foo?)

You can work around the issue by having Module::Foo declare our($X0, $X1) but that's kinda awkward. If these constants are not computed it's probably better to create a Module::Constants that everyone uses, but which doesn't use anyone else in the project.

Replies are listed 'Best First'.
Re^2: Exporter issues
by Dr. Mu (Hermit) on Oct 28, 2004 at 21:07 UTC
    Spot on gaal, and ++!! I'm amazed you saw this with so little to go on. Anyway, I created a new module, "Module::Constants", and put the globals there. That broke the dependency cycle, and all is well. Thanks!