Re: Using class::dbi::factory with multiple table classes in a single file

[prev] [thread] [next] [Date index for 2005/04/05]

From: William Ross
Subject: Re: Using class::dbi::factory with multiple table classes in a single file
Date: 19:15 on 05 Apr 2005
On 5 Apr 2005, at 20:03, Randal L. Schwartz wrote:

>>>>>> "William" == William Ross <will@xxxxxxx.xxx> writes:
>
>>> Total speculation here, but I wonder if this situation is the reason
>>> for a bit of code I found in CGI::Prototype::Hidden :
>>>
>>> eval "require $package" unless eval "defined %${package}::";
>
> William> Ooh. That's nice. Let's do that.
>
> Please also note that $package there must be trusted to be Not Evil.
> It comes from an earlier ([\w:]+) match, if I recall.

it's /^([\w]+)$/, but your requirements are stricter than mine.

I think i'll use !~ /[^\w:]/

thank you for the warning.

will

Re: Using class::dbi::factory with multiple table classes in a single file
William Ross 19:15 on 05 Apr 2005

Generated at 14:42 on 11 Apr 2005 by mariachi v0.52