|$vcard->familyName( [ familyName ] )|
|$vcard->givenName( [ givenName ] )|
|$vcard->additionalNames( [ additionalNames ] )|
|$vcard->suffixes( [ suffixes ] )|
|$vcard->prefixes( [ prefixes ] )|
To access address data:
$card->ADR( type )->field; $card->ADR( )->city; # Default address, city field $card->ADR( "home" )->address; # Home address type, address field
There are some decisions to be taken wrt ADR values.
$card->ADR( [type] )->country $card->ADR( [type] )->poBox $card->ADR( [type] )->city $card->ADR( [type] )->region $card->ADR( [type] )->address $card->ADR( [type] )->postalCode $card->ADR( [type] )->extendedAddress
As of now the RFC specifies action to take in the case of unlisted type - the address gets four types - intl, parcel, postal, and work. This implies that several types refer to the same address.
What I am doing for loading this data is storing the address in a hash entry by the first name and listing the remainder in _alias hash key.
What happens when one of these addresses is updated? Do we copy all the values to unique hash entries or do we update the common copy, requiring the developer to explicitly declare a new address replace the common entry.
If this doesnt make sense email me and Ill try another explaination.
What about preferred addresses? For now I am going to let the module user optionally request their preferred address type. If it does not exist then well keep looking for less preferred address types like the pref that was specified when loading vcard data, and finally the 4 default types.
For technical support please email to email@example.com ... for faster service please include Net::vCard and help in your subject line.
Jay J. Lawrence - firstname.lastname@example.org Infonium Inc., Canada http://www.infonium.ca/
Copyright (c) 2003 Jay J. Lawrence, Infonium Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Net::iCal - whose loading code inspired me for mine
RFC 2426, Net::iCal
|perl v5.20.3||NET::VCARD (3)||2003-04-15|