I don't know what's wrong here !

W

Wes Groleau

Thank you all. I implemented most of the suggestions,
and it now works on correct input. Some of the error
handling of incorrect input is faulty, but I'll study
that a little more before I beg for advice again. :)

Still don't know why it quit.
Seems like the biggest problem was in the regexp, yet
I'm sure I didn't touch that line since the last time
it worked. :)

Thanks again!
 
W

Wes Groleau

To give credit where credit is due....

I put this in the header:

# (And lots of help from Ragnar Hafsta___, Gunnar Hjalmarsson,
# John Krahn, Jay Tilton, on comp.lang.perl.misc)

but Mozilla (or possibly the sending client or
an NNTP server in between) screws up non-ASCII
characters. So Ragnar, can you describe the missing
characters for me? Or if any of you prefer to remain
unmentioned, please tell me.

--
Wes Groleau
"To know what you prefer, instead of humbly saying
Amen to what the world tells you you should prefer,
is to have kept your soul alive."
-- Robert Louis Stevenson
 
R

Ragnar Hafstað

Wes Groleau said:
To give credit where credit is due....

I put this in the header:

# (And lots of help from Ragnar Hafsta___, Gunnar Hjalmarsson,
# John Krahn, Jay Tilton, on comp.lang.perl.misc)

but Mozilla (or possibly the sending client or
an NNTP server in between) screws up non-ASCII
characters. So Ragnar, can you describe the missing
characters for me? Or if any of you prefer to remain
unmentioned, please tell me.

one character:
ISO-8859-1 code 240
or HTML entity ð or ð
or unicode LATIN SMALL LETTER ETH

you can use 'd' if it gives you trouble

gnari
 
J

Juha Laiho

(e-mail address removed) said:
....
I may also try the 'if' but I'd prefer it to
match every line because if the syntax is bad
I'd like to use what I can in the diagnostic
messages.

It's exactly this error handling you'd be doing in the 'else' branch
above. So, in the above, the code will attempt a patch on every line,
and go to the 'if/then' branch when the match succeeds, and to the
'else' branch when the match fails. In the 'else' brach you do whatever
error reporting/recovery you see appropriate.
 
W

Wes Groleau

Ragnar Hafsta�������������������� said:
or unicode LATIN SMALL LETTER ETH

you can use 'd' if it gives you trouble

I normally use UTF-8. I'll put in 'eth'

Probably won't be distributing this, since
I plan to add some 'personal' features that
do non-standard things with the GEDCOM format.

But, ya never know.....

--
Wes Groleau
"Grant me the serenity to accept those I cannot change;
the courage to change the one I can;
and the wisdom to know it's me."
-- unknown
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top