Re: Embperl 1.x question

2002-05-17 Thread Gerald Richter
> Is there any name-space available in > Embperl that I could use on a per-site basis with a single name? In 2.0 there is an application object, which is excatly for such a purpose. I have indrocuded it in b6 you can get a reference to it with $app = $req -> app ; and then store anything it i

Re[2]: Embperl 1.x question

2002-05-17 Thread Luiz Fernando B. Ribeiro
Hi Kee, Resposta a sua mensagem de quinta-feira, 16 de maio de 2002: Kee> ...I supposed I could make my object initializer do what his do Kee> (cache the pointer and return it on new calls), but do so on a Kee> per-site basis. The database handler (the DBI->connect object) should not be initia

Re: Embperl 1.x question

2002-05-16 Thread Kee Hinckley
At 7:43 AM +0200 5/16/02, Gerald Richter wrote: > > use lib "$ENV{DOCUMENT_ROOT}/data/"; >> use lib "$ENV{DOCUMENT_ROOT}/data/SWC"; >> use SWC::Calendar; >> use SWC::Commons; >> use SWC::HashChain; >> > >I would move this in a startup.pl file that is executed on serve

Re: Embperl 1.x question

2002-05-15 Thread Gerald Richter
Hi, Luiz had already pointed out how to solve the problem with Embperl::Object, I just want to add a few annotations > > Here's the initialization code: > > use lib "$ENV{DOCUMENT_ROOT}/data/"; > use lib "$ENV{DOCUMENT_ROOT}/data/SWC"; > use SWC::Calendar; > use SWC::Commons

Re: Embperl 1.x question

2002-05-15 Thread Luiz Fernando B. Ribeiro
Hi Kee, Resposta a sua mensagem de terça-feira, 14 de maio de 2002: I think that your questions are common to many Embperl developers, personally I solved this this way: - I use EmbperlObject: so you I can build my pages "smarter", and reuse UI components over many projects. - All the initia

Embperl 1.x question

2002-05-14 Thread Kee Hinckley
This all applies to the latest Embperl 1.3 revision. It started out as a bunch of questions, but in the process of testing each case I may have come up with my own answers, but confirmation would be nice. I have some initialization that I need to do on every page of my web site. The site is