Re: _install_method with DBI_PUREPERL=2

Re: _install_method with DBI_PUREPERL=2

am 20.06.2007 10:34:34 von Tim.Bunce

On Tue, Jun 19, 2007 at 03:25:43PM -0700, Efren Serra wrote:
> I think I forgot to turn off signature; here it goes:
>
> Folks,
>
> I was just wondering what the _install_method in DBI::PurePerl
> accomplishes when using DBI_PUREPERL=3. I take it my question is:
> How does `my $code_ref = eval qq{# line 1 \"$method\"\n$method_code};'
> adds to the symbol table for each of the DBI::db, DBI::dr,
> DBI::st, and DBI::common packages during initialization?

It doesn't. This statement a few lines later does that:

*$method = $code_ref;

Tim.

> Thank you.
>
> v/r,
> Efren
>
>
> -----Original Message-----
> From: Tim Bunce [mailto:Tim.Bunce@pobox.com]
> Sent: Tuesday, June 19, 2007 3:20 PM
> To: Efren Serra
> Cc: dbi-users@perl.org
> Subject: Re: _install_method with DBI_PUREPERL=2
>
>
> On Tue, Jun 19, 2007 at 02:08:53PM -0700, Efren Serra wrote:
> >
>
> Hello Efren.
>
> I can't read your email. Perhaps you could resend in a simpler format
> (not application/pkcs7-mime)
>
> Tim.
>
> Content-Type: application/pkcs7-mime; smime-type=signed-data;
> name="smime.p7m"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="smime.p7m"
>

RE: _install_method with DBI_PUREPERL=2

am 20.06.2007 18:32:09 von efren.serra.ctr

Tim,

How does *$method = $code_ref do this? Since $method is just a string
passed by value not reference, isn't it?

-----Original Message-----
From: Tim Bunce [mailto:Tim.Bunce@pobox.com]
Sent: Wednesday, June 20, 2007 1:35 AM
To: Efren Serra
Cc: Tim Bunce; dbi-users@perl.org
Subject: Re: _install_method with DBI_PUREPERL=2


On Tue, Jun 19, 2007 at 03:25:43PM -0700, Efren Serra wrote:
> I think I forgot to turn off signature; here it goes:
>
> Folks,
>
> I was just wondering what the _install_method in DBI::PurePerl
> accomplishes when using DBI_PUREPERL=3. I take it my question is:
> How does `my $code_ref = eval qq{# line 1 \"$method\"\n$method_code};'
> adds to the symbol table for each of the DBI::db, DBI::dr,
> DBI::st, and DBI::common packages during initialization?

It doesn't. This statement a few lines later does that:

*$method = $code_ref;

Tim.

> Thank you.
>
> v/r,
> Efren
>
>
> -----Original Message-----
> From: Tim Bunce [mailto:Tim.Bunce@pobox.com]
> Sent: Tuesday, June 19, 2007 3:20 PM
> To: Efren Serra
> Cc: dbi-users@perl.org
> Subject: Re: _install_method with DBI_PUREPERL=2
>
>
> On Tue, Jun 19, 2007 at 02:08:53PM -0700, Efren Serra wrote:
> >
>
> Hello Efren.
>
> I can't read your email. Perhaps you could resend in a simpler format
> (not application/pkcs7-mime)
>
> Tim.
>
> Content-Type: application/pkcs7-mime; smime-type=signed-data;
> name="smime.p7m"
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment; filename="smime.p7m"
>