Re: Reading Notes field in gedcom files

2010-04-28 Thread Bill Anderson
ting the gedcom files or something > else? > I have submitted to them as a possible bug. > > > > Rich > > -Original Message- > From: Bill Anderson [mailto:b...@anderson-ent.com] > Sent: Tuesday, April 27, 2010 9:13 PM > To: perl-gedcom@perl.org > Subject: Re

Re: Reading Notes field in gedcom files

2010-04-27 Thread Stephen Woodbridge
[mailto:b...@anderson-ent.com] Sent: Tuesday, April 27, 2010 9:13 PM To: perl-gedcom@perl.org Subject: Re: Reading Notes field in gedcom files Here is the script, modified to give the results expected. Notice the use of resolve_xrefs and ref. #!/bin/perl -w use strict; use Gedcom; my $ge

RE: Reading Notes field in gedcom files

2010-04-27 Thread RichGomes
M To: perl-gedcom@perl.org Subject: Re: Reading Notes field in gedcom files Here is the script, modified to give the results expected. Notice the use of resolve_xrefs and ref. #!/bin/perl -w use strict; use Gedcom; my $ged = Gedcom->new(shift); $ged->resolve_xrefs; for my $i ( $

Re: Reading Notes field in gedcom files

2010-04-27 Thread Bill Anderson
Here is the script, modified to give the results expected. Notice the use of resolve_xrefs and ref. #!/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 "=

Re: Reading Notes field in gedcom files

2010-04-26 Thread Bill Anderson
I believe your script and the GEDCOM module are working correctly, but you do not get the results you expect because of the way your GEDCOM file is constructed. To illustrate, consider two sample files. The first is at http://www.ged-gen.com/download/lincoln.ged If you run your script against thi

Reading Notes field in gedcom files

2010-04-26 Thread richgomes
Hoping I can get this question answered here. I have been trying to use perl to parse gedcom files and have not had much luck. My main goal is to get it to show me a list of people and then the contents of the notes section of their record. My script is based on the example code found here: