The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::Seek::Search::Result - Data::Seek Search Result Class

VERSION

version 0.05

SYNOPSIS

    use Data::Seek::Search::Result;

DESCRIPTION

Data::Seek::Search::Result is a class within Data::Seek which provides access to the search results produced by Data::Seek::Search.

ATTRIBUTES

datasets

    my $dataset = $result->dataset;

Perform the search and introspection using the search object, Data::Seek::Search, and cache the resulting data set.

    my $search = $result->search;

Reference the search object, Data::Seek::Search, which the resulting data set is derived from.

METHODS

data

    my $data = $result->data;

Produce a data structure, i.e. a hash reference, comprised of only the nodes matching the criteria used in the search.

nodes

    my $nodes = $result->nodes;

Produce a data structure, i.e. an array reference, comprised of only the node keys/paths matching the criteria used in the search.

values

    my $values = $result->values;

Produce a data structure, i.e. an array reference, comprised of only the values matching the criteria used in the search.

AUTHOR

Al Newkirk <anewkirk@ana.io>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Al Newkirk.

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