Hello
I'm having a strange behavior with embperl which has taken me by suprise.
I that a sql uery which is returning a an array of array reference.
I wanted to use the return value as an argument in an anchor:
I made an error and forgot to dereference it correctly and the result
should
have p
Gerald!
> "use" generates an alias to LMail::get_mail, so you can call it without the
> need to specify the package name.
Hole in one.
> While StatINC forces a reload of the
> module it can't know of the alias. So the alias inside the Embperl page
> still points to your old code. I guess when
>
> > So could you try to write
> >
> > [- @result=LMail::get_mail() -]
> >
> > Does this change anything ?
>
> I tried that and it works perfectly. But I can't quite think of why it
> would work using that form, although I'm sure I'd understand why if
> someone pointed it out to me.
>
"use" gene
Gerald!
> So could you try to write
>
> [- @result=LMail::get_mail() -]
>
> Does this change anything ?
I tried that and it works perfectly. But I can't quite think of why it
would work using that form, although I'm sure I'd understand why if
someone pointed it out to me.
DSL
--
>
> Yep!
>
> It's basically a package based on the example in the Camel Book:
>
> package LMail;
> require Exporter;
>
> @ISA=qw(Exporter);
> @EXPORT_OK=qw(get_mail);
>
> sub get_mail {
> # body
> }
>
>
this looks ok.
So could you try to write
[- @result=LMail::get_mail() -]
Does thi
Yep!
It's basically a package based on the example in the Camel Book:
package LMail;
require Exporter;
@ISA=qw(Exporter);
@EXPORT_OK=qw(get_mail);
sub get_mail {
# body
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
>
> I have:
>
> (in LMail.pm)
Do you have a
package LMail ;
here ? If not your sub is compiled in the same namespace as the Embperl
page, which could cause such a behaviour.
> @EXPORT_OK=qw(get_mail);
>
> sub get_mail {
> # the body goes here
> }
>
Gerald
--
H
I have:
(in httpd.conf)
PerlSetEnv PERL5LIB /home/httpd/modules/
PerlSetVar ApacheStatINC_Debug 1
PerlModule Apache::StatINC
PerlInitHandler Apache::StatINC
I'm running under mod_perl and HTML::Embperl is taking care of any files
that end in .epl
I've rolled a little script using em