Skip to content

load_file seems to do nothing? #28

Description

@michaelof

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:

#!/usr/bin/perl
#
use strict;
use warnings;
use utf8;
use Data::Dumper;

use Text::vCard::Precisely;



my $vc = Text::vCard::Precisely->load_file('myvcard.vcf');
print Dumper $vc;
=pod
$VAR1 = 'Text::vCard::Precisely';
=cut

print $vc->as_string();
=pod
Can't use string ("Text::vCard::Precisely") as a HASH ref while "strict refs" in use at reader Text::vCard::Precisely::version (defined at /home/michael/perl5/lib/perl5/Text/vCard/Precisely.pm line 11) line 5.
=cut 

which fails, respective output added as pod.
myvcard.vcf is a valid v3 vcard, written with as_file before, loads fine e.g. into Nextcloud.

Any hints? Should it work this way? Anything missed by me? Bug?

Regards,
Michael

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions