Parse::Path::DZIL - "dist.ini-style".paths.for.DZIL[0]
use v5.10; use Parse::Path; my $path = Parse::Path->new( path => 'gophers[0].food.count', style => 'DZIL', ); say $path->as_string; $path->push($path, '[2]'); say $path->as_string;
This path style is used for advanced Dist::Zilla INI parsing. It's the reason why this distribution (and related modules) were created.
Support is available for both hash and array steps, including quoted hash steps. Some examples:
gophers[0].food.type "Drink more milk".[3][0][0]."and enjoy it!" 'foo bar baz'[0]."\"Escaping works, too\""
DZIL paths do not have relativity. They are all relative.
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 <bbyrd@cpan.org>
This software is Copyright (c) 2013 by Brendan Byrd.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Parse::Path, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Path
CPAN shell
perl -MCPAN -e shell install Parse::Path
For more information on module installation, please visit the detailed CPAN module installation guide.