Open michaelof opened 4 years ago
Hi, thank you for daily reports. Firstly, I am sorry that there is nothing I can help you :(
To tell the truth, I don't know well around this method because it perfectly depends on Text::vFile::asData.
I will reply after I read well the doc about that.
I've asked in IRC channel #perl
for help.
This script loads the vfile correctly:
#!/usr/bin/perl
#
use strict;
use warnings;
use utf8;
use Data::Dumper;
use Text::vFile::asData();
open my $fh, "<", "myvcard.vcf" or die "couldn't open vcf: $!";
my $vf = Text::vFile::asData->new({ preserve_params => 1 });
my $data = $vf->parse($fh)->{'objects'}[0];
print Dumper $data;
Does this help?
@michaelof Ha ha, the matter is solved. These constructors I explained so in the PODs were NOT constructors.
Just I did miswrite is the matter.
I'll fix them ASAP.
Hi Yuki,
after being successfully able to WRITE a vcard with your nice modules, I now want to READ them back. To apply changes, finally.
I have the following small script:
which fails, respective output added as pod.
myvcard.vcf
is a valid v3 vcard, written withas_file
before, loads fine e.g. into Nextcloud.Any hints? Should it work this way? Anything missed by me? Bug?
Regards, Michael