Main > Programming > Libraries >

Path::Abstract 0.06

Path::Abstract 0.06

Sponsored Links

Path::Abstract 0.06 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.005 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 835
Date added: 2007-07-11
Publisher: Robert Krimen

Path::Abstract 0.06 description

Path::Abstract is a fast and featurefull class for UNIX-style path manipulation.

SYNOPSIS

use Path::Abstract;

my $path = Path::Abstract->new("/apple/banana");

# $parent is "/apple"
my $parent = $path->parent;

# $cherry is "/apple/banana/cherry.txt"
my $cherry = $path->child("cherry.txt");

Path::Abstract->new( < path> )
Path::Abstract->new( < part>, [ < part>, ..., < part> ] )

Create a new Path::Abstract object using < path> or by joining each < part> with "/"

Returns the new Path::Abstract object

Path::Abstract::path( < path> )
Path::Abstract::path( < part>, [ < part>, ..., < part> ] )

Create a new Path::Abstract object using < path> or by joining each < part> with "/"

Returns the new Path::Abstract object

$path->clone

Returns an exact copy of $path

$path->set( < path> )
$path->set( < part>, [ < part>, ..., < part> ] )

Set the path of $path to < path> or the concatenation of each < part> (separated by "/")

Returns $path

$path->is_nil
$path->is_empty

Returns true if $path is equal to ""

$path->is_root

Returns true if $path is equal to "/"

$path->is_tree

Returns true if $path begins with "/"

path("/a/b")->is_tree # Returns true
path("c/d")->is_tree # Returns false
$path->is_branch

Returns true if $path does NOT begin with a "/"

path("c/d")->is_branch # Returns true
path("/a/b")->is_branch # Returns false
$path->to_tree

Change $path by prefixing a "/" if it doesnt have one already

Returns $path

$path->to_branch

Change $path by removing a leading "/" if it has one

Returns $path

$path->list
$path->split

Returns the path in list form by splitting at each "/"

path("c/d")->list # Returns ("c", "d")
path("/a/b/")->last # Returns ("a", "b")
$path->first

Returns the first part of $path up to the first "/" (but not including the leading slash, if any)

path("c/d")->first # Returns "c"
path("/a/b")->first # Returns "a"
$path->last

Returns the last part of $path up to the last "/"

path("c/d")->last # Returns "d"
path("/a/b/")->last # Returns "b"
path

$path->get
$path->stringify

Returns the path in string or scalar form

path("c/d")->list # Returns "c/d"
path("/a/b/")->last # Returns "/a/b"

$path->push( < part>, [ < part>, ..., < part> ] )
$path->down( < part>, [ < part>, ..., < part> ] )

Modify $path by appending each < part> to the end of $path, separated by "/"

Returns $path

$path->child( < part>, [ < part>, ..., < part> ] )

Make a copy of $path and push each < part> to the end of the new path.

Returns the new child path

$path->pop( < count> )

Modify $path by removing < count> parts from the end of $path

Returns the removed path as a Path::Abstract object

$path->up( < count> )

Modify $path by removing < count> parts from the end of $path

Returns $path

$path->parent( < count> )

Make a copy of $path and pop < count> parts from the end of the new path

Returns the new parent path

$path->file
$path->file( < part>, [ < part>, ..., < part> ] )

Create a new Path::Class::File object using $path as a base, and optionally extending it by each < part>

Returns the new file object

$path->dir
$path->dir( < part>, [ < part>, ..., < part> ] )

Create a new Path::Class::Dir object using $path as a base, and optionally extending it by each < part>
Returns the new dir object

Path::Abstract 0.06 Screenshot

Advertisements

Path::Abstract 0.06 Keywords

Bookmark Path::Abstract 0.06

Hyperlink code:
Link for forum:

Path::Abstract 0.06 Copyright

WareSeeker periodically updates pricing and software information of Path::Abstract 0.06 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Path::Abstract 0.06 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
B::XPath class can search Perl optrees with XPath syntax. Free Download
Oracle::Trace is a Perl Module for parsing Oracle Trace files. Free Download
QMBTagger is a Qt-based frontend to the MusicBrainz client library. Free Download
Nagios::WebTransact::Timed is an object that provides a check method. Free Download
Algorithm::Permute is a Perl module with handy and fast permutation with object oriented interface. Free Download
Tk::after can execute a command after a time delay. Free Download
SOAP::Data::ComplexType is an abstract class for creating and handling complex SOAP::Data objects. Free Download
Blackbox is that fast, light window manager you have been looking for without all those annoying library dependancies. Free Download