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

Re: [MacPerl] Mac::Dialogs questions



At 3:43 AM 3/2/98, Bart Lateur wrote:
>END looks far too geneal to me (it's a global function).

Not a problem.

package A;
END {print 'a'}
package main;
END {print 'b'}
END {print 'c'}

All END's are called here.

>DESTROY is only useable when you're programming in OO style. Not
>everybody likes that; I' find Perl's OO syntax quite confusing.

But if you happen to be using OOP, DESTROY is likely the best way to go.


>What about the __DIE__ sig handler? I haven't tested it, but it OUGHT to
>work when command-period is pressed.

According to Chip Salzenberg, signals are not reliable; however, even if
they are, $SIG{__DIE__} is not called on cmd-..  $SIG{INT} is for that, but
it does not work in the MacPerl app AFAIK.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch