>I never tried AUTOLOAD with Embperl, also it seems to be a cool idea,
>but as
>far as I can tell from my mind I don't think the first method can work
>within Embperl 1.x, while in 2.0 it should work.
>Gerald
Hm, but is some trick like that AUTOLOAD possible this way:
[!
package Foo;
sub AUT
apparently Begin() doesn't actually do anything..
This version calls dbh->begin_work, which temporarily turns off
AutoCommit (until the next rollback/commit) and begins a transaction.
If AutoCommit is off, you are already in a transaction and this version
still does nothing. Perhaps Begin() coul
Gerald Richter wrote:
>
> >
> > I have tried restarting the server, with the same result (i.e. no
> > error).
> > I also tried putting the [$ var $] declaration inside the [$ sub $],
> > with no difference.
> >
>
> Mmmh, does it give an error if you put $yyy outside of the sub ?
So, like this:
>
> I have tried restarting the server, with the same result (i.e. no
> error).
> I also tried putting the [$ var $] declaration inside the [$ sub $],
> with no difference.
>
Mmmh, does it give an error if you put $yyy outside of the sub ?
Gerald
-
>
> When I tried something like
> [$ sub AUTOLOAD $]
>
> [$ endsub $]
>
> in Embperl page, it caused segfault to apache. Somehow, following works:
> [!
> package Foo;
> sub AUTOLOAD
> {
> # code
> }
> !]
>
> and in other page I load subs like usual with import and I can call
> [-Foo::nonexisting($
>
> I have a CGI forum that uses cookies to authenticate user.
> Now I wish to add some embperl pages that authenticate with %udat.
> I wish to change the CGI forum authentication method to embperl %udat like
> auth. method.
>
> How can I create, read, modify embperl session data from my CGI scrip
Gerald Richter wrote:
>
> > The following code works under EmbperlObject (1.3.4):
> >
> > [$ var $xxx $]
> > [$ sub foo $]
> >[-
> > $xxx = 1;
> > $yyy = 2;
> >-]
> > [$ endsub $]
> >
> > Perhaps I misunderstand the use of [$ var $], but I thought it would
> > catch the use of $yyy here,
Hi!
When I tried something like
[$ sub AUTOLOAD $]
[$ endsub $]
in Embperl page, it caused segfault to apache. Somehow, following works:
[!
package Foo;
sub AUTOLOAD
{
# code
}
!]
and in other page I load subs like usual with import and I can call
[-Foo::nonexisting($arg)-]
Is fir
> The following code works under EmbperlObject (1.3.4):
>
> [$ var $xxx $]
> [$ sub foo $]
>[-
> $xxx = 1;
> $yyy = 2;
>-]
> [$ endsub $]
>
> Perhaps I misunderstand the use of [$ var $], but I thought it would
> catch the use of $yyy here, because it wasn't listed in the [$ var $].
> Is