Ian Kluft > WebFetch > WebFetch::Data::Record

Download:
WebFetch-0.13.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

WebFetch::Data::Record - Object for management of WebFetch data records/rows

SYNOPSIS ^

use WebFetch::Data::Record;

WebFetch::Data::Record-mk_field_accessor( $field_name, ... ); $value = $obj->bynum( $num ); $value = $obj->fieldname; $obj->fieldname( $value ); >

DESCRIPTION ^

This module provides read-only access to a single record of the WebFetch data.

$value = $obj->bynum( $field_num );

Returns the value of the field located by the field number provided. The first field is numbered 0.

$value = $obj->byname( $field_name );

Returns the value of the named field.

$class->mk_field_accessor( $field_name, ... );

Creates accessor functions for each field name provided.

accessor functions

Accessor functions are created for field names and well-known names as they are defined.

So a field named "title" can be accessed by an object method of the same name, like $obj->title .

AUTHOR ^

WebFetch was written by Ian Kluft Send patches, bug reports, suggestions and questions to maint@webfetch.org.

SEE ALSO ^

WebFetch, WebFetch::Data::Record

syntax highlighting: