ranguard / text-vcard

Perl package to edit and create vCard(s) (RFC 2426)
22 stars 15 forks source link

processing sample file latin1.vcf results in error #53

Open japharl opened 7 years ago

japharl commented 7 years ago

Getting an error on a file latin1.vcf in the test directory of the directory.

pi@raspberrypi:~/vcard $ perl process.pl latin1.vcf
Can't call method "family" on an undefined value at /usr/local/share/perl/5.20.2/vCard/AddressBook.pm line 208.

where process.pl is:

use vCard::AddressBook;
my $fn = shift;
my $ab = vCard::AddressBook->new();
$ab->load_file($fn); # throws error here.  

Not sure if this is by design or by error.