Repost with typos corrected--Instance variable inheritance: is it just me or am I doing something dumb?]

2001-01-29 Thread Christopher L. Everett
Sorry about that. It was 3 AM after 12 hours beating my brains out. I guess I didn't have any left. Check these modules: package simian; use fields qw (name); use strict; #very important! use Apache; use Apache::Request; use Apache::Constants qw(:common); sub new { my $type = shift; my si

Re: Instance variable inheritance: is it just me or am I doing something dumb?

2001-01-29 Thread Joe Schaefer
"Christopher L. Everett" <[EMAIL PROTECTED]> writes: > Check these modules: > > package simian; > use fields qw (name); > > use strict; #very important! > use Apache; > use Apache::Request; > use Apache::Constants qw(:common); > > sub new { > my $type = shift; > my class1 $self = fields::n

Re: Instance variable inheritance: is it just me or am I doing something dumb?

2001-01-29 Thread darren chamberlain
Christopher L. Everett ([EMAIL PROTECTED]) said something to this effect on 01/28/2001: > package simian; > use fields qw (name); > sub new { > my $type = shift; > my class1 $self = fields::new(ref $type || $type); > $self->{name} = 'Jane'; > return $self->{name}; # error here > } Wh

Instance variable inheritance: is it just me or am I doing something dumb?

2001-01-28 Thread Christopher L. Everett
Check these modules: package simian; use fields qw (name); use strict; #very important! use Apache; use Apache::Request; use Apache::Constants qw(:common); sub new { my $type = shift; my class1 $self = fields::new(ref $type || $type); $self->{name} = 'Jane'; return $self->{name}; #