Path::Extended::Tiny - a Path::Tiny wrapper for Path::Extended compatibility
use Path::Extended::Tiny; # These objects have the (almost) same methods as Path::Extended # but use Path::Tiny internally. my $file = file('path/to/file.txt'); my $dir = dir('path/to/somewhere'); # These objects autoload Path::Tiny methods as well. $file->spew('write something to the path'); $dir->remove_tree; # As for conflicting methods, append _pt to use Path::Tiny ones. $file->slurp_pt;
This module reimplements important interfaces of Path::Extended with Path::Tiny to help migration. If you have some utilities that have used Path::Extended and exposed its objects to other modules/applications, this would help you and your users.
If you write something new, just use Path::Tiny.
See Path::Extended and Path::Tiny for details.
The following methods have incompatibility between Path::Extended and Path::Tiny. For easier migration, you might want to replace them with the ones with _pt suffix step by step. When everything is ready, replace Path::Extended::Tiny with Path::Tiny and remove _pt.
Kenichi Ishigaki, <ishigaki@cpan.org>
This software is copyright (c) 2014 by Kenichi Ishigaki.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Path::Extended::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Path::Extended::Tiny
CPAN shell
perl -MCPAN -e shell install Path::Extended::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.