Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > cleaning up as ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1396 of 1478
Post > Topic >>

cleaning up as application ends

by mfanderson@[EMAIL PROTECTED] (Mary Anderson) May 12, 2007 at 03:37 PM

I would like to perform some clean up at various points in my application.
 Here is one of them.

 if ($pageName eq 'CSV'){
	my $made_and_stuffed = make_and_stuff_query($pageName);
        if ($made_and_stuffed == 1){
		my $pathName = execute_CSV_query($pageName);
		print a({-href=>$pathName}, 'Open  CSV File'), hr;
	}
 }
 On returning from viewing the file, or on hitting the submit button to go
to the next page, or on exiting the application I would like to get rid of
this file (using unlink, of course)  Perl's  END should do the trick, but
I
find that it has rather odd notions of just what constitutes the END of
the
application.  
Although this particular file can be unlinked anytime after it has been
opened, I do have some clean up jobs which can be performed only when the
application exits.  END, which has been tried, really does not work for
this!

Thanks,
Mary Anderson
 




 2 Posts in Topic:
cleaning up as application ends
mfanderson@[EMAIL PROTECT  2007-05-12 15:37:33 
Re: cleaning up as application ends
mumia.w.18.spam+nospam@[E  2007-05-12 20:49:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 6:22:00 CDT 2008.