Skip to content

Instantly share code, notes, and snippets.

@poppen
Created March 19, 2013 04:35
Show Gist options
  • Select an option

  • Save poppen/5193739 to your computer and use it in GitHub Desktop.

Select an option

Save poppen/5193739 to your computer and use it in GitHub Desktop.
vcf2tsv.pl
#!/usr/bin/env perl
use strict;
use warnings;
use feature qw( say );
use Text::vCard::Addressbook;
my $address_book = Text::vCard::Addressbook->new(
{ 'source_file' => $ARGV[0], }
);
foreach my $vcard ( $address_book->vcards() ) {
say $vcard->fullname() . "\t" . $vcard->EMAIL();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment