PerlPoint::Anchors is a simple anchor collection class.
SYNOPSIS
# make a new object
my $anchors=new PerlPoint::Anchors;
# register an anchor
$anchors->add('page number', '500');
# check an anchor for being known
... if $anchors->query('page number');
# get a list of all registered anchors
my %regAnchors=%{$anchors->query};
Anchors are no part of the PerlPoint language definition, but used by various tags which either define or reference them. To support those tags, this simple collection class was implemented. It provides a consistent and general interface for dealing with anchors.
By using the module, one can register an anchor together with a value and query these data later, to check if a certain anchor was already registered or to access the anchor related value. A value can be any valid Perl data. Additionally, the complete collection can be requested.
Product's homepage
Requirements:
· Perl