Data::Object::Path
Data-Object Path Class
use Data::Object::Path; my $path = Data::Object::Path->new('/tmp/test.txt'); $path->absolute;
Data::Object::Path provides methods for manipulating file paths and encapsulates the behavior of Path::Tiny.
This package implements the following methods.
BUILDPROXY(Any @args) : CodeRef
The BUILDPROXY method handles resolving missing-methods via autoloaded. This method is never called directly.
# given $path $path->BUILDPROXY(...); # ...
origin() : Str
The origin method returns the package name of the proxy used.
# given $origin $path->origin(); # Path::Tiny
source() : Object
The source method returns the underlying proxy object used.
# given $source $path->source(); # Path::Tiny (object)
string() : Str
The string method returns the string representation of the object.
# given $path $path->string(); # ...
To install Data::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Object
CPAN shell
perl -MCPAN -e shell install Data::Object
For more information on module installation, please visit the detailed CPAN module installation guide.