in reply to initializer method called from object constructor, overwriting the another object's variables
If you need them to be part of each object, then they have to be defined in the object by adding them in the new()method --
sub new { my $ip_addr = shift(); my $self = { DEVICE_IP => $ip_addr, self_ip => undef, partner_ip => undef, }; bless $self, 'MyPackage'; $self->my_init(); return($self);
----
I Go Back to Sleep, Now.
OGB
|
|---|