Hello,
I want to define a few subs used everywhere on my site. So I wrote :
lib/subs.epl:
[.!
$req = shift;
sub test {
print OUT "test";
}
!]
test.html:
[-
$subs = Execute({object => "$ENV{DOCUMENT_ROOT}/lib/subs.epl"});
$subs->test;
-]
This works fine but I can't get the values in $req from subs.epl and
I need my $req->{dbh}...
Any clue ? Thanks for your help,
--
Jean-Christophe Boggio -o)
embperl@thefreecat.org /\\
Independant Consultant and Developer _\_V
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
I want to define a few subs used everywhere on my site. So I wrote :
lib/subs.epl:
[.!
$req = shift;
sub test {
print OUT "test";
}
!]
test.html:
[-
$subs = Execute({object => "$ENV{DOCUMENT_ROOT}/lib/subs.epl"});
$subs->test;
-]
This works fine but I can't get the values in $req from subs.epl and
I need my $req->{dbh}...
Any clue ? Thanks for your help,
--
Jean-Christophe Boggio -o)
embperl@thefreecat.org /\\
Independant Consultant and Developer _\_V
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org