Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Reading notes in gedcom files?

by StarkRavingCalm (Sexton)
on Apr 29, 2010 at 18:00 UTC ( #837608=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Reading notes in gedcom files?
in thread Reading notes in gedcom files?

To close this off, it would seem the Notes field in Gedcom files can accept many formats.

The script below works as originally expected.

Thanks for the help.

#!/bin/perl -w use strict; use Gedcom; my $ged = Gedcom->new(shift); $ged->resolve_xrefs; for my $i ( $ged->individuals ) { for my $n ( $i->note ) { print "========================================\n"; print $i->name, "\n"; if (ref $n) { print $n->get_value, "\n"; } else { print "$n\n"; } #print "========================================\n"; } }


Comment on Re^3: Reading notes in gedcom files?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://837608]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (17)
As of 2015-07-06 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls