>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
$
>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
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
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
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
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
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#=
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
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