Provided by: libcatmandu-perl_1.2016-1_all
NAME
Catmandu::Util::Path - Path related utility functions
FUNCTIONS
looks_like_path($str) 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 as_path($str, $type) 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'. as_path("$.foo.bar.$append") # is equivalent to Catmandu::Path::simple->new(path => "$.foo.bar.$append");