Re: END ing in a cgi script

[email protected] ((Owen Cook))
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
On Fri, Feb 16, 2007 at 08:27:38PM -0800, Mary Anderson wrote:
> 
> 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?


Well I just use 'unlink'


Owen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.