Path::Extended

Yet another Path class
Download

Path::Extended Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Kenichi Ishigaki
  • Publisher web site:
  • http://search.cpan.org/~ishigaki/

Path::Extended Tags


Path::Extended Description

Yet another Path class Path::Extended is yet another file/directory handler that does a bit more than Path::Class for some parts, and a bit less for other parts. One of the main difference is Path::Extended always tries to use forward slashes when possible, ie. even when you're on the MS Windows, so that you don't need to care about escaping paths that annoys you from time to time when you want to apply regexen to a path, especially in file tests that use 'like' or 'compare'.Also, Path::Extended can do some basic file/directory operations such as copy, move, and rename as well as file I/O stuff like open, close, and slurp (and some of these may behave differently from the equivalents of Path::Class).On the other hand, Path::Extended doesn't care (or care little) about converting foreign path names or ascending/descending path tree.In short, this is not for manipulating a path name itself, but for doing some meaningful thing to or with something the path points to.SYNOPSIS use Path::Extended; my $file = file('path/to/file.txt'); my $dir = dir('path/to/somewhere'); my $maybe_file = file_or_dir('path/to/file_or_dir'); my $maybe_dir = dir_or_file('path/to/file_or_dir'); Requirements: · Perl


Path::Extended Related Software