Steffen Schwigon > Data-DPath > Data::DPath::Context

Download:
data-dpath/Data-DPath-0.32.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Data::DPath::Context - Abstraction for a current context that enables incremental searches.

API METHODS ^

new ( %args )

Constructor; creates instance.

Args:

give_references

Default 0. If set to true value then results are references to the matched points in the data structure.

all

Returns all values covered by current context.

If give_references is set to true value then results are references to the matched points in the data structure.

search( $path )

Return new context with path relative to current context.

match( $path )

Same as search($path)->all();

UTILITY SUBS/METHODS ^

_filter_points

Evaluates the filter condition in brackets. It differenciates between simple integers, which are taken as array index, and all other conditions, which are taken as evaled perl expression in a grep like expression onto the set of points found by current step.

current_points

Attribute / accessor.

give_references

Attribute / accessor.

AUTHOR ^

Steffen Schwigon, <schwigon at cpan.org>

COPYRIGHT & LICENSE ^

Copyright 2008,2009 Steffen Schwigon.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.