At 4:14 PM -0500 12/18/01, Lihn, Horng-Twu wrote:
>I have a library of perl routine that I call in cgi-bin environment
>where I usually "require".  I could not find any way to require it
>and use it in Embperl. I can not find any doc describing how this is done.
>(I can require it in the Mason handler.pl)
>
>Can you shed a light? I think it has something to do with the object model
>which I can not fully comprehend so far.

Maybe I'm missing something, because this seems simple.
[- require "foo.pl"; -]
will load it everytime the page is loaded
[! require "foo.pl"; !]
will load it once the first time the page is loaded.

I use libraries from within Embperl all the time, I don't believe in 
putting full code definitions in front of the designers.
-- 

Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/
[EMAIL PROTECTED] (or ...!alice!nazgul for time travelers :-)

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

Reply via email to