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: Autmatic function creation

2004-11-17 Thread Paul Johnson
On Wed, Nov 17, 2004 at 11:00:17AM -0500, Dave Gray wrote: > Charles K. Clarkson <[EMAIL PROTECTED]> wrote: > > [snip] > > : : foreach my $method ( keys %InheritableClassData ) { > > : : no strict 'refs'; > > : : *$method = sub { > > : : shift; > > : : $InheritableClassData{

Re: Autmatic function creation

2004-11-17 Thread Dave Gray
Charles K. Clarkson <[EMAIL PROTECTED]> wrote: > [snip] > : : foreach my $method ( keys %InheritableClassData ) { > : : no strict 'refs'; > : : *$method = sub { > : : shift; > : : $InheritableClassData{$_} = shift if @_; > : : return $InheritableClassData{$_}; > : :

RE: Autmatic function creation

2004-11-17 Thread Charles K. Clarkson
Michael Kraus <[EMAIL PROTECTED]> wrote: : What I was trying to achieve with this: : : --START-- : our %InheritableClassData = ( : DBH => undef, : Q => undef, : Handler => undef, : ); : : foreach (qq(DBH Q Handler)) { : sub $_ { : shift; : $InheritableClassData{$_} = shift if @

RE: Spam:Re: Autmatic function creation

2004-11-16 Thread Michael Kraus
] Subject: Spam:Re: Autmatic function creation Michael Kraus wrote: > Just wondering if this code snippet will behave as expected, and if > not then why not? :) > > --START-- > our %InheritableClassData = ( > DBH => undef, > Q => undef, > Handle

RE: Spam:RE: Autmatic function creation

2004-11-16 Thread Michael Kraus
Sent: Wednesday, 17 November 2004 5:30 PM To: [EMAIL PROTECTED] Subject: Spam:RE: Autmatic function creation Michael Kraus <[EMAIL PROTECTED]> wrote: : Just wondering if this code snippet will behave as expected, : and if not then why not? :) No, I don't think so. One error is in u

RE: Autmatic function creation

2004-11-16 Thread Charles K. Clarkson
Michael Kraus <[EMAIL PROTECTED]> wrote: : Just wondering if this code snippet will behave as expected, : and if not then why not? :) No, I don't think so. One error is in using the qq() operator instead of the qw() operator. Even with that fix, perl throws syntax errors. : --START-- : our

Re: Autmatic function creation

2004-11-16 Thread K-sPecial
Michael Kraus wrote: Just wondering if this code snippet will behave as expected, and if not then why not? :) --START-- our %InheritableClassData = ( DBH => undef, Q => undef, Handler => undef, ); foreach (qq(DBH Q Handler)) { sub $_ { shift; $Inherita

Autmatic function creation

2004-11-16 Thread Michael Kraus
Just wondering if this code snippet will behave as expected, and if not then why not? :) --START-- our %InheritableClassData = ( DBH => undef, Q => undef, Handler => undef, ); foreach (qq(DBH Q Handler)) { sub $_ { shift; $Inherita