Re: Proper class setup?

2007-06-24 Thread Chas Owens
On 6/24/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: snip I pretty much have a very small idea of what is going on up there. snip Alright, lets walk through it piece by piece then. > our %fields = ( >_id => 1, >_queue=> 1, >_owner=> 1, >_priorit

Re: Proper class setup?

2007-06-24 Thread Mathew Snyder
Chas Owens wrote: > On 6/22/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: > snip >> I'm not sure what you mean by "Change your new() in a new() and init()". > snip >> What do you mean by "set/get approach"? > snip > > Some people believe that new should just create a new blank object and > call an

Re: Proper class setup?

2007-06-22 Thread Chas Owens
On 6/22/07, Mathew Snyder <[EMAIL PROTECTED]> wrote: snip I'm not sure what you mean by "Change your new() in a new() and init()". snip What do you mean by "set/get approach"? snip Some people believe that new should just create a new blank object and call an init method to do setup. There a

Re: Proper class setup?

2007-06-22 Thread Mathew Snyder
Dr.Ruud wrote: > Mathew Snyder schreef: > >> I'm presently learning OOP as Perl does it using online resources and >> and Programming Perl as my tutors. I'm not certain I have it right >> though. Is this correct for the package: > > [whitespace is cheap] Duly noted :D > >> package Report; >>

Re: Proper class setup?

2007-06-22 Thread Dr.Ruud
Mathew Snyder schreef: > I'm presently learning OOP as Perl does it using online resources and > and Programming Perl as my tutors. I'm not certain I have it right > though. Is this correct for the package: [whitespace is cheap] > package Report; > > require Exporter; > use strict; > > our @IS

Proper class setup?

2007-06-22 Thread Mathew Snyder
I'm presently learning OOP as Perl does it using online resources and and Programming Perl as my tutors. I'm not certain I have it right though. Is this correct for the package: package Report; require Exporter; use strict; our @ISA = qw(Exporter); our @EXPORT= qw(new); sub new {