On 2005-04-20, hoeeg (at) post4.tele.dk <"hoeeg (at) post4.tele.dk"> wrote:
> Hi, i thought i had this OO thing figured out, but apparantly not.
>
> I have a module i want to make multiple instances of.
> All goes well with the first instance until i create a second instance,
> then the first instance seems to be overwritten.
>
> I have made a small test module to demonstrate the problem
> --------------------------------------------
> # perl module Testobject.pm
> package Testobject;
*snip*
> When instance 2 is created, instance 1 takes on the identity of instance 2.
>
> What have i overlooked?
*snip*
Hi hoeeg,
If you add 'use strict;' after the above package line in
Testobject.pm, perl will give you the info you seek.
HTH,
-Al
--
-----------------------------------------------------------------
a l a n d. s a l e w s k i
1024D/FA2C3588 EDFA 195F EDF1 0933 1002 6396 7C92 5CB3 FA2C 3588
-----------------------------------------------------------------