in reply to Re^2: object oriented Perl advice / constructor creation in child class
in thread object oriented Perl advice / constructor creation in child class
dir structure looks like
As previously stated, B.pm will already exist on your system.
Attempting to write new code with "package B;" will cause you all sorts of problems.
You should avoid this name.
That's fine. The class name will become "C::C1".
My previously posted "lib/C1.pm" should be moved to "lib/C/C1.pm",
and the first line should be changed to:
In my "./acd.pl", you should change
my $c1 = C1::->new();
my $c1 = C::C1::->new();
After making those changes, note the difference in the last line:
whos_who() is in package: C
$self is in package: C::C1
The hexadecimal values in "X=HASH(0xhhhhhh)" will likely be different:
that's not significant; you could get different values on separate runs using the same code.