RE: Spam:Re: Autmatic function creation

2004-11-17 Thread Michael Kraus
G'day... > > : Should I be using "my" or "our" here for the variables - these > > : are the variables I want present in all my derived classes and > > : should be the same for all. > > I assume you're referring to things like > %InheritableClassData... You should be using "our" variables; > "my

RE: Spam:Re: Autmatic function creation

2004-11-16 Thread Michael Kraus
Hi! You mean something like: --START-- our %InheritableClassData = ( DBH => undef, Q => undef, Handler => undef, ); foreach (keys %InheritableClassData) { $$_ = sub { shift; $InheritableClassData{$_} = shift if @_;

RE: Spam:RE: Autmatic function creation

2004-11-16 Thread Michael Kraus
G'day... Yeah, I should have used qw not qq, and after I sent it I thought "Why didn't I just say keys %InheritableClassData instead.." :) I'm trying to create a class that has data members which are the same for all instances, including instances of derived classes, as well as containing data me