in reply to RE: Re: Blessed be the OOP'ers
in thread Blessed be the OOP'ers
push @$employees, $person;with printing them looking like
foreach $p (@$employees) {
print $p->name(),"\n";
}
Using the array reference would make it easy to stuff this list of employees into another object/list/whatever.
|
|---|