On Wed, Nov 26, 2008 at 05:37:42PM +0900, Raymond Wan wrote:
> 
> Hi all,
> 
> Somewhat related to Charlie's previous posting, but even more basic...  
> I have a module MyModule that has functions and variables that I use on 
> almost every web page.  Do I have to do a:
> 
> "use MyModule;"
> 
> in every file?  Is there a better alternative?  I don't mind putting a 
> PerlModule directive in my httpd.conf or a "use MyModule" in the 
> handler, but I am not sure if that achieves what I would like and is the 
> "correct way to do things".
> 
> Also, I have put a PerlModule directive and it doesn't seem to be 
> working.  I am not sure if it is because I have done something wrong or 
> have misunderstood what it does?

Not sure if you meant this when you tried it in the handler, but have
you tried putting your use in the top level autohandler file's %init
section?  I'm not sure if this is the "right" way to do things, but it's
the way that I've got my webapps setup.

-- 
Alan <[EMAIL PROTECTED]> - http://arcterex.net
--------------------------------------------------------------------
"Beware of computer programmers that carry screwdrivers." -- Unknown

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to