Stone::Cursor(3pm) | User Contributed Perl Documentation | Stone::Cursor(3pm) |
Stone::Cursor - Traverse tags and values of a Stone
use Boulder::Store; $store = Boulder::Store->new('./soccer_teams'); my $stone = $store->get(28); $cursor = $stone->cursor; while (my ($key,$value) = $cursor->each) { print "$value: Go Bluejays!\n" if $key eq 'State' and $value eq 'Katonah'; }
Boulder::Cursor is a utility class that allows you to create one or more iterators across a Stone object. This is used for traversing large Stone objects in order to identify or modify portions of the record.
my $cursor = $stone->cursor;
For example:
$cursor = $s->cursor; while (($key,$value) = $cursor->each) { print "$value: BOW WOW!\n" if $key=~/pet/; }
Lincoln D. Stein <lstein@cshl.org>.
Copyright 1997-1999, Cold Spring Harbor Laboratory, Cold Spring Harbor NY. This module can be used and distributed on the same terms as Perl itself.
Boulder, Stone
2022-06-08 | perl v5.34.0 |