LIPS@EMEA1
cc:
Subject: Re: O
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
> > 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
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
> -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
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