Re: Importing variables and subrutines from a config and/or subsfile, please help..

2002-12-27 Thread Gerald Richter
>I am Executing the file but, I do not know how to append the variables to the $req object. In the file you are executing: [- $r = shift ; $r -> {foo} = 'bar' ; $r -> {foo2} = 'bar2' ; -] Call it with [- Execute ('file.epl') -] and access you vars with [- $r = shift ; # only once per page $

Re: Undefined subroutine &HTML::Embperl::DOC::_6::verifysession

2002-12-27 Thread Gerald Richter
>Hi, i am using an module (with extension .pm), that don't use the clause package. > >I can use 'do' or 'use' ? (do "pct/module.pm";) You can use 'do', because this will compile your code into the package of each page. If you want to use 'use' you need a package statement in your module and call y

Re: Importing variables and subrutines from a config and/or subs file,please help..

2002-12-27 Thread Gerald Richter
Hi: > > > I have a config file conf.epl and its content is: > > [- > $dbname="mydb"; > $dbusername = "ckg"; > $dbpassword = "clave"; > $stylecss="files/style/style.css"; > -] > > In other file i load this file(conf.epl): > > [- > > Execute ({inputfile => 'conf.epl', import =>1, package =>__PACKAGE

Re: Importing variables and subrutines from a config and/or subsfile, please help..

2002-12-27 Thread Carlos Kassab
Luiz Fernando: I am using mod_perl. I am Executing the file but, I do not know how to append the variables to the $req object. It would be great if you can post some examples. Thank you Carlos Kassab El vie, 27-12-2002 a las 06:21, Luiz Fernando B. Ribeiro escribió: > Em 26 Dec 2002 16:34:1

Re: Undefined subroutine &HTML::Embperl::DOC::_6::verifysession

2002-12-27 Thread Maurício Amorim
Hi, i am using an module (with extension .pm), that don't use the clause package.   I can use 'do' or 'use' ? (do "pct/module.pm";)   My module is like:   #! /usr/bin/perl   sub verifysession {     if ($udat{user})  }   1;   The undefined error occurred same if i restart the ap

Re: Undefined subroutine &HTML::Embperl::DOC::_6::verifysession

2002-12-27 Thread Gerald Richter
Hi,   take a look at the FAQ, it should explain your problem:   http://perl.apache.org/embperl/pod/doc/doc13/pod/Faq.-page-3-.htm#sect_19   Gerald   -Gerald Richter    ecos electronic communication services gmbhInternetconnect * Webs

Re: Undefined subroutine &HTML::Embperl::DOC::_6::verifysession

2002-12-27 Thread Maurício Amorim
Hi, Luiz,   My module don't use package. This is some of the type:   #! /usr/bin/perl   #=# Rotina: verifysession# Parametros:# 1 : $key# Retorno:# 0 - sem sessão aberta# 1 - com sessão aberta#=

Re: Undefined subroutine &HTML::Embperl::DOC::_6::verifysession

2002-12-27 Thread Luiz Fernando B. Ribeiro
Em Thu, 26 Dec 2002 19:48:31 + "Maurício Amorim " <[EMAIL PROTECTED]> escreveu: > Hi list, > > I am using use module in my epl files. > > I modify them, but i stop and start the apache, but the error > continue: > > Internal Server Error > The server encountered an internal error or misconf

Re: Importing variables and subrutines from a config and/or subs file, please help..

2002-12-27 Thread Luiz Fernando B. Ribeiro
Em 26 Dec 2002 16:34:10 -0600 Carlos Kassab <[EMAIL PROTECTED]> escreveu: > Hi: > > > I have a config file conf.epl and its content is: > > [- > $dbname="mydb"; > $dbusername = "ckg"; > $dbpassword = "clave"; > $stylecss="files/style/style.css"; > -] > > In other file i load this file(conf.epl