NAME

Text::vCard - a package to parse, edit and create vCards (RFC 2426)

SYNOPSIS

use Text::vCard;
my $loader = Text::vCard->loader( source => "xmas_card_list.vcf" );

while (my $vcard = $loader->next) {
    $vcard->....;
}

# or even sexier

while (my $vcard = <$loader> ) {
    $vcard->...;
}

DESCRIPTION

Still under active development.

METHODS

fn()

my $fn = $vcard->fn();

This method will return the full name of the person.

addresses()

my @addresses = $vcard->addresses();
my $address_array_ref = $vcard->addresses();

This method returns an array or array ref containing Text::vCard::Part::Address objects.

TODO: Supply 'types' of addresses required.

name()

my $name = $vcard->name();

This method returns the Text::vCard::Part::Name object if available, it returns undef if not.

EXPORT

None by default.

AUTHOR

Leo Lapworth, LLAP@cuckoo.org

COPYRIGHT

Copyright (c) 2003 Leo Lapworth. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

ACKNOWLEDGEMENTS

Jay J. Lawrence for being a fantastic person to bounce ideas of and for creating Text::vFile from our discussions.

SEE ALSO

Text::vFile::Base, Text::vFile, Text::vCard::Part::Address, Text::vCard::Part::Name.