develooper Front page | perl.perl5.porters | Postings from October 2009

Re: [perl #69782] Pod::Html doesn't remove temporary files

Thread Previous | Thread Next
From:
David Landgren
Date:
October 16, 2009 02:24
Subject:
Re: [perl #69782] Pod::Html doesn't remove temporary files
Message ID:
4AD83C43.4030209@landgren.net
jesse wrote:
> 
>> >From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378328:
>>
>> pod2html does not remove temporary files before exiting:
>>
>> $ ls -a
>> .  ..
>> $ pod2html /dev/null > /dev/null
>> $ ls -a
>> .  ..  pod2htmd.tmp  pod2htmi.tmp
>>
> 
> Verified as still being an issue on blead. Is there a reason Pod::Html
> doesn't use File::Temp?

I had a look at the code again. These temporary files are in fact 
caches, that allow subsequent runs of pod2html to insert cross 
references to POD it already knows about. (Mind you, how it works (or 
not) is a mystery to me).

Ideally, these cache files would be stored long-term in a shared 
directory somewhere so that subsequent runs of pod2html could refer to 
them. Afterwards, any CPAN module that contains a link e.g., SEE ALSO 
L<perlipc>, could have its documentation HTMLified and linkified correctly.

In the grand scheme of things, what I really wanted to do with this 
module was to be able to cross off the "make HTML install work" perltodo 
item.

If you want, I could produce sync patches against blead as is, and it 
could go out the door with 5.11.1

Otherwise, in the test suite I wrote, these temp files are cleaned up. 
Feel free to steal them for the time being.

David

--
naked, but wearing blinding lights! were it a pretty girl, she'd be 
surrounded as a flame by moths

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About