Sponsored Content
The Lounge What is on Your Mind? Please Welcome Simon Sweetman (Chubler_XL) to the Moderator Team Post 303041573 by wisecracker on Thursday 28th of November 2019 04:13:34 AM
Old 11-28-2019
Hi Chubler_XL...

WOW! Terrific stuff. Congrats, you have earned it...
 

3 More Discussions You Might Find Interesting

1. What is on Your Mind?

to any moderator ..

:) i have made new title for myself since i am very serious about unix I thought that it might reflect this a little and also help me to gain some more self esteem to be more dillegent in my questions and answers to others.. I have an avatar but I am not quite sure how to apply it. if any moderator... (5 Replies)
Discussion started by: moxxx68
5 Replies

2. What is on Your Mind?

Please Welcome Nicki Paul to the Moderator Team!

Dear All, I am very pleased to inform everyone that Nicki Paul (zxmaus) is joining the Moderation Team after a number of years away from the site. Nicki used to be very active here (over 800 posts), and she got busy with travel, work, family and her dogs, and we have missed her. Now she is... (7 Replies)
Discussion started by: Neo
7 Replies

3. What is on Your Mind?

Please Welcome Dave Munro to the Moderator Team!

Dear All, I am very pleased to announce that Dave Munro (gull04) is joining the Moderation Team, after being a very valuable member of UNIX.com for 15+ years. Dave is an IT Consultant with 30 years of experience this year, has worked in many of the industry vertical market segments and has... (6 Replies)
Discussion started by: Neo
6 Replies
Stone::Cursor(3pm)					User Contributed Perl Documentation					Stone::Cursor(3pm)

NAME
Stone::Cursor - Traverse tags and values of a Stone SYNOPSIS
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! " if $key eq 'State' and $value eq 'Katonah'; } DESCRIPTION
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. CLASS METHODS Boulder::Cursor->new($stone) Return a new Boulder::Cursor over the specified Stone object. This will return an error if the object is not a Stone or a descendent. This method is usually not called directly, but rather indirectly via the Stone cursor() method: my $cursor = $stone->cursor; OBJECT METHODS $cursor->each() Iterate over the attached Stone. Each iteration will return a two-valued list consisting of a tag path and a value. The tag path is of a form that can be used with Stone::index() (in fact, a cursor is used internally to implement the Stone::dump() method. When the end of the Stone is reached, "each()" will return an empty list, after which it will start over again from the beginning. If you attempt to insert or delete from the stone while iterating over it, all attached cursors will reset to the beginnning. For example: $cursor = $s->cursor; while (($key,$value) = $cursor->each) { print "$value: BOW WOW! " if $key=~/pet/; } $cursor->reset() This resets the cursor back to the beginning of the associated Stone. AUTHOR
Lincoln D. Stein <lstein@cshl.org>. COPYRIGHT
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. SEE ALSO
Boulder, Stone perl v5.10.1 2011-03-05 Stone::Cursor(3pm)
All times are GMT -4. The time now is 04:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy