[Chicago-talk] Is there a way to simplify including multiple .pm files?

Randal L. Schwartz merlyn at stonehenge.com
Fri Mar 14 16:39:23 PDT 2008


>>>>> "He" == He Guangsheng-W16844 <Guangsheng.He at motorola.com> writes:

He> My scripts take a lot of constants, so I defined these constants in
He> several ConstantVar.pm files and include them all.

This seems like a bad design to me.  Why would more than one or two
sections of your code need to know a bunch of constants?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


More information about the Chicago-talk mailing list