logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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");

perl v5.40.0                                       2025-01-17                          Catmandu::Util::Path(3pm)

Name

       Catmandu::Util::Path - Path related utility functions

See Also