Re: OOP & Perl. References to methods

2001-08-22 Thread Mark Maunder
Lakka, Why are you passing the scalar object reference by reference to your function? Just pass it as per normal and it will save you dereferencing it with $$. Also, why do you have a '\' char before $_[0]? You're creating another reference there. And are you actually blessing $dxfInstance into a

RE: OOP & Perl. References to methods

2001-08-22 Thread Bob Showalter
> -Original Message- > From: Lakka Sami [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 22, 2001 8:51 AM > To: [EMAIL PROTECTED] > Subject: OOP & Perl. References to methods > > > Hi, > > I'm having problems with OOP and Perl. I have an cla

OOP & Perl. References to methods

2001-08-22 Thread Lakka Sami
Hi, I'm having problems with OOP and Perl. I have an class named DXFobject and an other class that puts these objects in an array ( like push @AoO, [dxfInstance] ). Now I want to access a objects method thru reference (before I put them into an array ) : func(\$dxfInstance); sub func { $ref_t