Re: [Maypole] Why is moniker used instead of of table name when looking for table specific templates?

From: Sebastian Riedel (sri at oook.de)
Date: Mon Dec 27 2004 - 22:02:16 GMT


Dave Howorth:
> It's Class::DBI::Loader that removes the '_', so you never get a
> Class::DBI class name that has an underscore in it if you use that. But
> it doesn't (didn't, I think now?) handle other non-alphanumeric
> characters properly anyway.

It does since one or two releases.

my $subclass = join '', map ucfirst, split /[\W_]+/, $table;

-- 
sebastian

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT