Apache::Wyrd::Interfaces::IndexUser - Convenience Class for Index-driven Wyrds
use base qw(Apache::Wyrd::Intefaces::IndexUser Apache::Wyrd); sub _startup { my ($self) = @_; $self->_init_index; } sub _format_output { my ($self) = @_; $self->index->update_entry($self); ... } sub _shutdown { my ($self) = @_; $self->_dispose_index; }
A very simple and lazy inteface for invoking a BASECLASS::Index object as an index and storing it as $self->{index};
Invoke a handle to a new default index (assuming the class BASECLASS::Index holds a default definition and put it in the index data key of the Wyrd. It can then be used at any point in the body of the Wyrd's perl code.
Shutdown the index and dispose of the handle. Must be called to avoid database/dbfile handle "leaks" (open but dead database connections).
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
Apache::Wyrd
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Apache::Wyrd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Wyrd
CPAN shell
perl -MCPAN -e shell install Apache::Wyrd
For more information on module installation, please visit the detailed CPAN module installation guide.