>>>>> "Chris" == Chris Prather <[email protected]> writes:
Chris> Further down the evil chain, but less evil IMO is handles => qr/.*/ Chris> which will delegate *every* method through. Using a regex like Chris> qr/^[^_]\w+/ should exclude private methods (starting with _) . It is Chris> evil but less evil in my opinion thn AUTOLOAD. Chris> Look closer at delegation again. The answers there may surprise Chris> you. When I had to "subclass" DBI, this was the easiest approach, because DBI has all that weird instance creation stuff, with the correlated statement handle class. I created my actual DBI $dbh as an attribute, and then had it handle everything that wasn't overridden in my subclass. To whomever made handles => qr/.*/ Do The Right Thing, thank you! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
