Path::Extended::Class - Path::Extended::Class documentation


Path-Extended documentation Contained in the Path-Extended distribution.

Index


Code Index:

NAME

Top

Path::Extended::Class

SYNOPSIS

Top

    use Path::Extended::Class;
    my $file = file('path/to/file.txt');
    my $dir  = dir('path/to/somewhere');

DESCRIPTION

Top

If you want some functionality of Path::Extended but also want more Path::Class-compatible API, try Path::Extended::Class, which is built upon Path::Extended and passes many of the Path::Class tests. What you may miss are foreign expressions, and absolute/relative chains (those of Path::Extended::Class return a string instead of an object).

FUNCTIONS

Top

Both of these two functions are exported by default. As of 0.12, additional file_or_dir and dir_or_file functions are exported as well. See Path::Extended for their details.

file

takes a file path and returns a Path::Extended::Class::File object. The file doesn't need to exist.

dir

takes a directory path and returns a Path::Extended::Class::Dir object. The directory doesn't need to exist.

AUTHOR

Top

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Top


Path-Extended documentation Contained in the Path-Extended distribution.

package Path::Extended::Class;

use strict;
use warnings;
use base qw( Path::Extended );

1;

__END__