Re: What is the best way to parse a GPX (XML) file

2010-06-16 Thread robert Key
the key? I don't mind writing my own parser although this seems to be reinventing the wheel but some like XML::Parser are very general purpose and require a huge learning curve. Any ideas or suggestions would be helpful. Thanks, Robert Key Have a look at http://search.cpan.org/~andy

What is the best way to parse a GPX (XML) file

2010-06-16 Thread robert Key
ng my own parser although this seems to be reinventing the wheel but some like XML::Parser are very general purpose and require a huge learning curve. Any ideas or suggestions would be helpful. Thanks, Robert Key -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional comman

Re: How do I control a C programme from perl?

2010-05-15 Thread robert Key
On 14/05/2010 22:26, C.DeRykus wrote: On May 14, 8:15 am, robert...@telkomsa.net (robert Key) wrote: Hi Eitan, I have just used fflush and it works. The real problem is that C programme was just a test programme. I am using someone else's programme and I only have the binary! This makes

Re: How do I control a C programme from perl?

2010-05-14 Thread robert Key
Hi Eitan, I have just used fflush and it works. The real problem is that C programme was just a test programme. I am using someone else's programme and I only have the binary! This makes life complicated. The only way will be to try and unbuffer output and then launch the c binary so that it in

Re: How do I control a C programme from perl?

2010-05-14 Thread robert Key
Hi I have downloaded the modules and will give use them. Thanks for your help, Rob Key On 13/05/2010 14:13, Robert Wohlfarth wrote: On Thu, May 13, 2010 at 1:21 AM, robert Keywrote: Hi, I want to capture UNBUFFERED output from a C programme and then control it depending on its output. Prob

Re: How do I control a C programme from perl?

2010-05-14 Thread robert Key
thanks so much for your help. I will check it out. I have been progaming for a long time in fortran, PL/M, c, c++,perl but there is always more to learn, great! I should try this under windows instead of linux and see what happens. Thanks Eitan. I have also downloaded the Expect modules and ch

Re: How do I control a C programme from perl?

2010-05-13 Thread robert Key
On 13/05/2010 14:16, Bob McConnell wrote: From: robert Key I want to capture UNBUFFERED output from a C programme and then control it depending on its output. Problem is nothing seems to unbufferd the output from the C programme. Only when the child has finished executing do I get all the

How do I control a C programme from perl?

2010-05-12 Thread robert Key
Hi, I want to capture UNBUFFERED output from a C programme and then control it depending on its output. Problem is nothing seems to unbufferd the output from the C programme. Only when the child has finished executing do I get all the output which is too late. The C programe is just like hel