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

David Golden <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.module-build
Message-ID <[email protected]>
On Thu, Aug 27, 2009 at 6:48 PM, Eric Wilhelm<[email protected]> wrote:
> # from [email protected]
> # on Thursday 27 August 2009 14:08:
>
>>+  my $dist = DistGen->new( dir => MBTest->tmpdir );
>>+
>>+  # generate the skeleton files and also schedule cleanup
>>+  $dist->regen;
>>+  END{ $dist->remove }
>
> 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.

David
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.