Re: about perltoot

2006-09-24 Thread chen li
> > Hello Li > > About the _permitted hash key, the perltoot tutorial > says > > + I could have avoided the "_permitted" field > entirely, but I wanted to > + demonstrate how to store a reference to class data > on the object so you > + wouldn't have to access that class data directly > from an

Re: about perltoot

2006-09-24 Thread chen li
> Why didn't you test what happens when you do that? > What happens when you > create three different objects and manipulate them? > What happens with > those object when you go back to the original code? Actually before I post it I already check what happen. It looks like there are NO differe

Re: about perltoot

2006-09-24 Thread Mumia W.
On 09/24/2006 12:35 PM, chen li wrote: --- "Mumia W." <[EMAIL PROTECTED]> wrote: On 09/22/2006 07:50 AM, chen li wrote: --- "Mumia W." <[EMAIL PROTECTED]> wrote: That "redundancy" allows you to use inheritance. If you have a class Employee, with an expanded set of fields, this method ma

Re: about perltoot

2006-09-24 Thread Rob Dixon
chen li wrote: > > --- "Mumia W." <[EMAIL PROTECTED]> > wrote: > > >>On 09/22/2006 07:50 AM, chen li wrote: >> >>>--- "Mumia W." >> >><[EMAIL PROTECTED]> >> >>>wrote: >>> That "redundancy" allows you to use inheritance. >> >>If >> you have a class Employee, with an expanded set of fiel

Re: about perltoot

2006-09-24 Thread chen li
--- "Mumia W." <[EMAIL PROTECTED]> wrote: > On 09/22/2006 07:50 AM, chen li wrote: > > > > --- "Mumia W." > <[EMAIL PROTECTED]> > > wrote: > >> That "redundancy" allows you to use inheritance. > If > >> you have a class > >> Employee, with an expanded set of fields, this > >> method makes it p

Re: about perltoot

2006-09-22 Thread Mumia W.
On 09/22/2006 07:50 AM, chen li wrote: --- "Mumia W." <[EMAIL PROTECTED]> wrote: That "redundancy" allows you to use inheritance. If you have a class Employee, with an expanded set of fields, this method makes it possible to add the fields without having to modify each method that uses them.

Re: about perltoot

2006-09-22 Thread chen li
--- "Mumia W." <[EMAIL PROTECTED]> wrote: > On 09/21/2006 07:08 PM, chen li wrote: > > Hi all, > > > > I read some sections in perltoot. In section > > Autoloaded Data Methods I see some line codes as > > following: > > > > package Person; > > use Carp; > > our $AUTOLOAD; # i

Re: about perltoot

2006-09-22 Thread Mumia W.
On 09/21/2006 07:08 PM, chen li wrote: Hi all, I read some sections in perltoot. In section Autoloaded Data Methods I see some line codes as following: package Person; use Carp; our $AUTOLOAD; # it's a package global my %fields = ( name=> undef,

about perltoot

2006-09-21 Thread chen li
Hi all, I read some sections in perltoot. In section Autoloaded Data Methods I see some line codes as following: package Person; use Carp; our $AUTOLOAD; # it's a package global my %fields = ( name=> undef, age => undef,