The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.

aliased classes

That's just to make Pod::Coverage happy which does not handle aliased modules.

Context

Point

Step

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.