END ing in a cgi script
[email protected] ("Mary Anderson")
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
My perl-cgi application creates some temporary files and a temporary
table which I would like to clean up as I exit the program. I tried
writing a perl END block, but found that did not work. It appeared that
to the cgi interpreter END{} had no special meaning and the code inside
the END block was just executed in turn, instead of at the exit of the
program. Are there techniques to clean up the environment on leaving the
application?
Thanks
Mary