develooper Front page | perl.beginners | Postings from January 2002

bash 'trap' equivalent ?

Thread Next
From:
Prahlad Vaidyanathan
Date:
January 8, 2002 20:24
Subject:
bash 'trap' equivalent ?
Message ID:
20020108160304.GA1938@marvin.clone
Hi,

Is there a perl equivalent of the 'trap' command in bash ? The reason I
ask is, I create a temporary file at the start of a script, and I want
to ensure that that temporary file gets removed in case the user hits
C-c before the script finishes running.

pv.
-- 
Prahlad Vaidyanathan <slime@vsnl.net>

Experiments must be reproducible; they should all fail in the same way.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About