>>>>> "Tony" == Tony Bowden <[EMAIL PROTECTED]> writes:
Tony> Hmmm ... my immediate problem with that is that as Class::DBI handles Tony> relational database mapping, this could easily end up pulling in the Tony> entire database! Tony> And then there's the circular structures ... for example, in a simple Tony> video shop example, the Video class has a 'stars' method returning a Tony> list of Star objects, each of which has a 'stars_in' method, returning Tony> a list of Video objects, each of which ... Tony> Part of the point of Class::DBI is that you don't load data until you Tony> need it, so pre-populating a data structure with all the data you might Tony> need isn't really a good fit... If you want an action mapping to an action under your control, you'll definitely need to build an adaptor-pattern object to do the job. A simple definition within the class won't do it. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
