Kathryn Andersen > Tie-FieldVals > Tie::FieldVals::Row::Join

Download:
Tie-FieldVals-0.6202.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.6202   Source  

NAME ^

Tie::FieldVals::Row::Join - a hash tie for merging rows of Tie::FieldVals data

VERSION ^

This describes version 0.6202 of Tie::FieldVals::Row::Join.

SYNOPSIS ^

    use Tie::FieldVals::Row;
    use Tie::FieldVals::Row::Join;

    # just the keys
    my %person_thing;
    my $jr = tie %person_thing, 'Tie::FieldVals::Row::Join,
        fields=>@keys;

    # keys and values
    my %person;
    my $rr = tie %person_thing, 'Tie::FieldVals::Row,
        fields=>@keys;

    my %person_thing;
    my $jr = tie %person_thing, 'Tie::FieldVals::Row::Join,
        row=>$rr;

DESCRIPTION ^

This is a Tie object to enable the merging of more than one Tie::FieldVals::Row hashes into one hash.

OBJECT METHODS ^

append_keys

    $row_obj->append_keys(@fields);

Extend the legal fields definition by adding the given fields to it. Sets the given fields to be undefined.

merge_rows

    $row_obj->merge_rows($row_obj2);

Merge a Tie::FieldVals::Row object with this one. The second row object has different Fields than this one, and this will extend the legal fields definition by adding the given fields to it, as well as adding the values of the second row to this row.

TIE-HASH METHODS ^

TIEHASH

Create a new instance of the object as tied to a hash.

    my %person_thing;
    my $jr = tie %person_thing, 'Tie::FieldVals::Row::Join,
        fields=>@keys;

    my %person;
    my $rr = tie %person_thing, 'Tie::FieldVals::Row,
        fields=>@keys;

    my %person_thing;
    my $jr = tie %person_thing, 'Tie::FieldVals::Row::Join,
        row=>$rr;

PRIVATE METHODS ^

For developer reference only.

debug

Set debugging on.

whowasi

For debugging: say who called this

REQUIRES ^

    Test::More
    Carp

SEE ALSO ^

perl(1). Tie::FieldVals Tie::FieldVals::Join

BUGS ^

Please report any bugs or feature requests to the author.

AUTHOR ^

    Kathryn Andersen (RUBYKAT)
    perlkat AT katspace dot com
    http://www.katspace.com

COPYRIGHT AND LICENCE ^

Copyright (c) 2004 by Kathryn Andersen

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: