I use Mason under CGI on a shared web hosting server, and would like to make my local library path 'automatically' available to all my modules. The Mason admministrator's manual says:
| If you want to preload the modules in your httpd.conf file, | and still have them export symbols into the | HTML::Mason::Commands namespace, you can do this: | | <Perl> | { package HTML::Mason::Commands; | use CGI; | use LWP; | } | </Perl> | | A Perl section will also work for including local library | paths: | | <Perl> | use lib '/path/to/local/lib'; | </Perl> I don't have access to the httpd.conf file, AFAIK only the server administrator does, so my question is if there is a way to preload local modules without having to bother the server administrator each and every time I add a new module. Of course it would be nice not to have to put the "put lib '/path/to/local/lib';" statement into the <%once> section of each and every module (I suppose there would be some efficiency gain with that as well, wouldn't it?), even though I'd need to bother the server administrator only once for that. E.g. ould it work to put these things into my mason handler script? -- /BP 8^)> -- Benct Philip Jonsson -- melroch at melroch dot se "Maybe" is a strange word. When mum or dad says it it means "yes", but when my big brothers say it it means "no"! (Philip Jonsson jr, age 7) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users