RE: AUTOLOAD in embperl subs

2001-12-17 Thread Neeme Vool
>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

DBIx::Recordset->Begin (patch)

2001-12-17 Thread Angus Lees
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

Re: Using [$ var $]

2001-12-17 Thread Neil Gunton
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:

Re: Using [$ var $]

2001-12-17 Thread Gerald Richter
> > 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 -

Re: AUTOLOAD in embperl subs

2001-12-17 Thread Gerald Richter
> > 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($

Re: cgi and sessions

2001-12-17 Thread Gerald Richter
> > 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

Re: Using [$ var $]

2001-12-17 Thread Neil Gunton
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,

AUTOLOAD in embperl subs

2001-12-17 Thread Neeme Vool
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

Re: Using [$ var $]

2001-12-17 Thread Gerald Richter
> 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