[CDBI] new reserved words in 3.0.11?

William Ross will at spanner.org
Fri Nov 4 13:31:47 GMT 2005


On 4 Nov 2005, at 13:14, Dave Howorth wrote:

> On Fri, 2005-11-04 at 12:56 +0000, William Ross wrote:
>> On 4 Nov 2005, at 12:36, William Ross wrote:
>>
>>> incidentally, your lc($column) is likely redundant anyway: $column
>>> is an object and stringifies to a lowercased version of its name.
>>> As a test, I'd suggest that you either omit the lc($column) or add
>>> a simple mutator_name_for method:
>>>
>>>   sub mutator_name_for {
>>>     return lc(shift);
>>>   }
>>
>> meh. you probably already changed that to
>>
>>    sub mutator_name_for {
>>      my $class = shift;
>>      return lc(shift);
>>    }
>
> If you're going to go with a workaround for the bug, the code  
> needed is
> actually simpler and more general:
>
>   *mutator_name_for = \&accessor_name_for;

it was a diagnostic test, not a workaround, and the *whatsit seems a  
bit london.pm when you could just call the method :)

But yes, it would work much better than my suggestion.

will





More information about the ClassDBI mailing list