Subject: | patch - features & bugfixes |
I was about to write a very similar module, but I found yours on CPAN
and it's very close to what I want to use it for. I wrote the
attached patch this morning that adds most of what I had in mind that
was missing.
It was easiest for me to generate the patch by just creating a 0.06
directory and make my changes. Edit to taste ;)
What it does:
* removes dependency on File::Slurp
* implements the prepend() method (probably slow)
* allows calling new() on an object to get a new scratch directory
that is a child (subdirectory of the parent)
* added a cleanup() method to explicitly blow away an object
recursively with File::Path::rmtree()
* allows passing some arguments through new() to File::Temp
- DIR, TEMPLATE, and CLEANUP
* fixes ls(): (undef) is not an empty list; () or [] are
- fixed warnings from File::Spec when called in 0-arg form
* adds openfile() method which hooks touch() but returns the filehandle
* optimizes away a couple needless array copies - @_ is nice and
fast since it aliases the caller's variables rather than copying
Subject: | directory_scratch-0.06.patch |
Message body is not shown because it is too large.