in reply to Object Inheritance in Perl
I really hope that you are practicing OOP, and not using this in production - no offense, it's not very pretty.
and likewise change all references to @persons to just persons - it's a key, not an array - the value of the key points to an array.'persons' => ();
# this is all you need to add someone push(@{$self->{persons}},$aPerson);
my $size = @{$self->{persons}}; for(0..$size) { printf("\t%18.18s => $_\n", "person number"); @{$self->{persons}}[$_]->printProperties(); }
Side issues - use CGI and -w
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|