in reply to Re^2: "cleaning out" object data
in thread "cleaning out" object data
In fact, you can use that code during your initialization as well. Then when you add a new instance var, you'll have a clean place to initialize it for everyone.sub reset_me { my $self = shift; $self->{known_nicks} = {}; $self->{known_channelnames} = {}; }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: "cleaning out" object data
by Forsaken (Friar) on May 20, 2005 at 14:25 UTC |