forked from kenahoo/Path-Class
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added put(), append(), and copy_to() methods to Path::Class::File
Added clear() and copy_to() methods to Path::Class::Dir
- Loading branch information
Showing
3 changed files
with
131 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was about to write roughly the same patch. :-)
Three comments:
a) maybe 'put' should be 'write' ? It's just a tad more descriptive.
b) have the functions put and append return $self, so that they can be chained with other Path::Class actions
c) submit a pull request to the main repo! :-)