Re: OO question

2003-01-28 Thread gerhard . petrowitsch
LIPS@EMEA1 cc: Subject: Re: O

Re: OO question

2003-01-28 Thread Magnus Lindgren
Hi! You only delete the reference to the object, not the object itself. What you have to do is a recursive delete function as well. Something like: $top->{_var}{name1}->delete(); And then define this method to first call delete on all it's children and then delete itself and finaly delete the

RE: OO question

2002-07-30 Thread Lee Goddard
> > I'm starting to get into OO programming with Perl and > > have a question. > > > > As I understand it with OO - you create an object and > > then do something to it. > > > > I have a list of values in an array and I wish to do > > the same "something" to all of them. > > > > Do I need to crea

Re: OO question

2002-07-30 Thread Carl Jolley
On Tue, 30 Jul 2002, [iso-8859-1] Nathan Rimmer wrote: > I'm starting to get into OO programming with Perl and > have a question. > > As I understand it with OO - you create an object and > then do something to it. > > I have a list of values in an array and I wish to do > the same "something" to

RE: OO question

2002-07-30 Thread Joe Schell
> -Original Message- > From: Behalf Of Nathan Rimmer > > > I'm starting to get into OO programming with Perl and > have a question. > > As I understand it with OO - you create an object and > then do something to it. > The definition of a object is data and behavior that affects that da

RE: OO question

2002-07-30 Thread Peter Eisengrein
Title: RE: OO question I think the answer is yes, you can do it all in one process. If I understand you correctly you want to know whether you can do something like this: ### BEGIN use Nathan::Rimmers::Module; my %array; my $do = new Nathan::Rimmers::Module; my $result = $do->someth