Re: [svn:Module-Build] r13228 - in Module-Build/trunk/t: . lib

Eric Wilhelm <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.module-build
Message-ID <[email protected]>
# from David Golden
# on Thursday 27 August 2009 19:08:

>> I think this END block is redundant given a temp dir with CLEANUP =>
>> 1.
>
>remove() does a chdir out of the directory.  That's important or the
>tempdir can't be removed on Windows.  At least, that's my best take on
>the situation.

Ah.  That might be something we lost in r12453 by changing to 
File::Temp, but it looks like we still have an END block in MBTest.pm.  
Either way, the abstraction needs to be good enough that the caller 
doesn't have to remember to do the right thing.

--Eric
-- 
"If you dig it, it's yours."
--An old village poet (via Al Pacino)
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------
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.