-
-
13 May 2010 20:36:54 UTC
- Distribution: Path-Abstract
- Module version: 0.096
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (2619 / 6 / 0)
- Kwalitee
Bus factor: 0- 87.63% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (13.24KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- Scalar::Util
- Sub::Exporter
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Path::Abstract::Underload - Path::Abstract without stringification overloading
VERSION
version 0.096
SYNOPSIS
use Path::Abstract::Underload; my $path = Path::Abstract::Underload->new("/apple/banana"); # $parent is "/apple" my $parent = $path->parent; # $cherry is "/apple/banana/cherry.txt" my $cherry = $path->child("cherry.txt");
DESCRIPTION
This is a version of Path::Abstract without the magic "use overload ..." stringification.
Unfortunately, without overloading, you can't do this:
my $path = Path::Abstract::Underload->new("/a/path/to/somewhere"); print "$path\n"; # Will print out something like "Path::Abstract::Underload=SCALAR(0xdffaa0)\n"
You'll have to do this instead:
print $path->get, "\n"; Will print out "/a/path/to/somewhere\n" # Note, you can also use $path->stringify or $path->path # You could also do this (but it's safer to do one of the above): print $$path, "\n";
Or, just use Path::Abstract
DOCUMENTATION
See Path::Abstract for documentation & usage
AUTHOR
Robert Krimen <robertkrimen@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Robert Krimen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Path::Abstract, copy and paste the appropriate command in to your terminal.
cpanm Path::Abstract
perl -MCPAN -e shell install Path::Abstract
For more information on module installation, please visit the detailed CPAN module installation guide.