Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!snorkelwacker!apple!bridge2!jarthur!uci-ics!nagel From: nagel@paris.ics.uci.edu (Mark Nagel) Newsgroups: comp.lang.perl Subject: on exit functionality? Keywords: exit handler Message-ID: <25B3E15F.25354@paris.ics.uci.edu> Date: 17 Jan 90 03:07:10 GMT Organization: UC Irvine Department of ICS Lines: 12 I was rewriting an old beaten-up shell script in perl (of course) and noticed that there's no obvious way to duplicate sh's easy way of creating an exit handler (using trap cmd 0). Is there any way to trap signal 0 in perl? Or is there some other exit handler mechanism? I thought of appropriating some other signal and killing myself with that signal number. This seems messy, but I'll do it if there's no other way... -- Mark Nagel UC Irvine Department of ICS +----------------------------------------+ ARPA: nagel@ics.uci.edu | Help! Somebody! I'm being oppressed! | UUCP: ucbvax!ucivax!nagel +----------------------------------------+