in reply to How to include a large number of constants?

You may want to study the code of Astro::Constants.


holli, /regexed monk/
  • Comment on Re: How to include a large number of constants?

Replies are listed 'Best First'.
Re^2: How to include a large number of constants?
by dragonchild (Archbishop) on Apr 27, 2005 at 18:49 UTC
    Wow, that distribution is a poster-boy for how to (ab)use Module::Build. The author creates his modules on the fly during the build process, which is kinda nuts. More importantly, he pre-generates a list of constants ahead of time, then the modules end up explicitly listing every constant. The resulting files are going to look ... well ... ugly.

    Now, the process the author uses is kinda nice. Maybe that should be replicated, but definitely not the resulting code.


    The Perfect is the Enemy of the Good.