# 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.
On Thu, Aug 27, 2009 at 6:48 PM, Eric Wilhelm wrote:
> # from dagol...@cvs.perl.org
> # 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 thin
# from dagol...@cvs.perl.org
# 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