[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Garbage collection



At 04.09 +1030 1999.11.21, Henry Penninkilampi wrote:
>Assumptions:  When a user quits a MacPerl application, a 'quit' Apple
>Event is sent by the MacOS to that application.  The application is
>responsible for performing any garbage collection that is required.
>
>Question:  If I wanted to do something like append a log entry to a file
>or cleanly disconnect from a remote server before quitting, would anyone
>care to speculate as to how this would best be accomplished?

Use END {}.

  END {
    # clean up code here
  }

No need to try to overload any Apple events.

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org