in reply to Re: Re: Graph::Map and a Browser (no server side storing)
in thread Graph::Map and a Browser (no server side storing)

With regard to disparity, while I still think that your best method for handling temporary files will be through File::Temp, there is another option. If you are looking for something more permanent than anonymous STDIO streams and filehandle scope, for example if you wanted to optimise with some server-side caching (for which I would recommend Cache::Cache), you may want to explore the teardown method from CGI::Application.

This method is called upon termination of the execution thread and allows for clean-up code to easily be incorporated into the CGI::Application framework. Most commonly, I make use of this method for the closure of file handles and database connections prior to script termination.