Catmandu::Util::Path - Path related utility functions
Returns 1 if the given string is a path, 0 otherwise. Only recognizes Catmandu::Path::simple paths prefixed with a dollar sign at the moment.
looks_like_path("$.foo.bar.$append") # => 1 looks_like_path("waffles") # => 0
Helper function that returns a Catmandu::Path instance for the given path string. The optional $type argument gives preliminary support for alternative path implementations and defaults to 'simple'.
$type
as_path("$.foo.bar.$append") # is equivalent to Catmandu::Path::simple->new(path => "$.foo.bar.$append");
To install Catmandu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu
CPAN shell
perl -MCPAN -e shell install Catmandu
For more information on module installation, please visit the detailed CPAN module installation guide.