Thread Bug in Text::vCard??? (6 answers)
Opened by harvey at 2009-03-26 16:56

harvey
 2009-03-26 17:55
#119858 #119858
User since
2007-10-06
16 Artikel
BenutzerIn
[default_avatar]
2009-03-26T16:41:13 renee
Probier mal

Hab's so eingebaut:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl
use strict;
use warnings;
use Text::vCard;
use Text::vCard::Addressbook;

#my $address_book = Text::vCard::Addressbook->new();

my $vcard = Text::vCard::Addressbook->new()->add_vcard();

# Add a node to it
my $address = $vcard->add_node({
                        'node_type' => 'ADR',
                });

# Add some data to the address.
$address->street('19 The mews');
$address->city('Buffyvill');

#my $vcf_file = $address_book->export();
my $vcf_file = $vcard->export();
print ("$vcf_file");

Jetzt funktioniert die Zuweisung, aber nicht mehr die export-Methode:
Quote
Can't locate object method "export" via package "Text::vCard" at ./vcardclean2.pl line 21.

View full thread Bug in Text::vCard???