LPM: import question

Rich Bowen rbowen at rcbowen.com
Sun Aug 13 15:41:04 CDT 2000


Matt Cashner wrote:
> 
> all right, you wizards gurus and other unsavory types, here's a question
> for you.  i'm sort of reinventing the wheel here a bit. what i'm trying to
> do is to require a series of modules and hand-run import on them but pass
> into the import sub an event handler.  i'm hoping i can get the modules to
> load subs into the event handler.   at run-time, the main driver runs a
> readdir on the modules dir and uses that to form the require list.  so all
> i know is a file name; package names could be anything.
> 
> i've gotten this to work if the modules dont declare a package (duh). but
> i'm having some troubles with different package names.  any thoughts
> anyone?  thanks all.

Seems clunky, but I suppose you could actually read in the files and
look for package declarations.

Rich
-- 
Rich at cre8tivegroup.com
Director of Web Application Development  -  The Creative Group
                                 http://www.cre8tivegroup.com/
Author - Apache Server Unleashed - http://apacheunleashed.com/



More information about the Lexington-pm mailing list