in reply to Running a sub before a script exits?
Would calling the save_config from a destructor on the object work for you? Something like the following added to package FooBar:
#untested sub DESTROY { my $self = shift; $self->save_config; }
-rattus
__________
He seemed like such a nice guy to his neighbors /
Kept to himself and never bothered them with favors
- Jefferson Airplane, "Assassin"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Running a sub before a script exits?
by Anonymous Monk on Aug 25, 2002 at 04:23 UTC | |
by rattusillegitimus (Friar) on Aug 25, 2002 at 04:29 UTC |
In Section
Seekers of Perl Wisdom