On Mon, Feb 4, 2013 at 10:13 AM, David Cantrell <da...@cantrell.org.uk> wrote:
>
> my $fs = Devel::CheckFS->new($filename);

I didn't get the point of $filename until later when I realized how
elegantly it solves the filesystem problem.

E.g. create a tempdir, test a file in that tempdir.  If things work,
then tests that create and do work in a tempdir should work, and so
on.

Though for tests, probably File::Spec->tmpdir and "." (relative to
Makefile.PL) are the only things of interest.

Easy to write a hacky version, but a bitch to write well, though.

David



-- 
David Golden <x...@xdg.me>
Take back your inbox! → http://www.bunchmail.com/
Twitter/IRC: @xdg

Reply via email to