Put this in front of your script:
$SIG{INT} = sub { print "I'll die\n"; exit 1; };
and try it again. You'll get the building blocks.
UPDATE: In http://perldoc.perl.org/perlvar.html search for SIG.
UPDATE2: Have a look at File::Temp. File system handling on unixoid operating systems do have a nice feature. You can open a file (result is a opened filehandle) and directly afterwards unlink the file. This has the result that you have a file you can write to and read from but which can't be seen in the directory listing. The better: As soon as you close the file explicitly in your program or implicitly by killing the program the file gets deleted as there is no reference to it anymore. IMHO this would be the right approach in your object.
McA
In reply to Re: DESTROY on CTRL+C
by McA
in thread DESTROY on CTRL+C
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |