1. Toby Inkster
  2. p5-json-hyper

Commits

Toby Inkster  committed e7caa2d Draft

doc scalar context

  • Participants
  • Parent commits 29db8fc
  • Branches JSON-Hyper

Comments (0)

Files changed (1)

File lib/JSON/Hyper.pm

View file
 So, why does this method return a list of results instead of just
 a single result? In most cases, there will be either 0 or 1 items
 on the list; however, JSONPath allows a path to match multiple
-nodes, so there will occasionally be more than one result.
+nodes, so there will occasionally be more than one result. (In 
+scalar context, this method just returns the first result anyway.)
 
 =item C<< resolve_fragment($object, $fragment) >>