Parse::Path::File::Unix - /UNIX/file/path/support
use v5.10; use Parse::Path; my $path = Parse::Path->new( path => '/root/.cpan', style => 'File::Unix', ); say $path->as_string; $path->push($path, 'FTPstats.yml'); say $path->as_string;
This is a file-based path style for *nix paths. Some examples:
/etc/foobar.conf /home/bbyrd/foo/bar.txt ../..///.././aaa/.///bbb/ccc/../ddd foo/bar/../baz var/log/turnip.log
Arrays are, of course, not supported. Neither is quoting, as that is a product of the shell, not the path itself.
The project homepage is https://github.com/SineSwiper/Parse-Path/wiki.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/Parse::Path/.
Brendan Byrd <firstname.lastname@example.org>
This software is Copyright (c) 2013 by Brendan Byrd.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)