Re: [Flightgear-devel] perl scripting

2002-12-19 Thread David Megginson
Norman Vine writes: but what worries me is how to translate a chunk of binary data into perl variables ... probably easy once you know the tricks. http://www.swig.org Last time I looked at swig, it was for creating bindings for native libraries from include files. Try perldoc -f

Re: [Flightgear-devel] perl scripting

2002-12-19 Thread Norman Vine
David Megginson Norman Vine writes: but what worries me is how to translate a chunk of binary data into perl variables ... probably easy once you know the tricks. http://www.swig.org Last time I looked at swig, it was for creating bindings for native libraries from include

Re: [Flightgear-devel] perl scripting

2002-12-19 Thread David Megginson
Norman Vine writes: Last time I looked at swig, it was for creating bindings for native libraries from include files. Not really sure what you mean by that David but SWIG is designed to extend scripting languages with application specific knowledge It is true that it gleens this

Re: [Flightgear-devel] perl scripting

2002-12-19 Thread Norman Vine
David Megginson Norman Vine writes: Last time I looked at swig, it was for creating bindings for native libraries from include files. Not really sure what you mean by that David but SWIG is designed to extend scripting languages with application specific knowledge It is

Re: [Flightgear-devel] perl scripting

2002-12-19 Thread Andy Ross
David Megginson wrote: Last time I looked at swig, it was for creating bindings for native libraries from include files. Try perldoc -f pack perldoc -f unpack Perl has excellent support for this kind of thing, once you get your head around it. BIG WARNING: The pack/unpack facilities

Re: [Flightgear-devel] perl scripting

2002-12-19 Thread David Megginson
Andy Ross writes: This is trivially fixable by clearing $ENV{LANG} in scripts where you want to call pack/unpack, but it is very non-obvious if you aren't prepared for it. Thanks for the warning. Problems aside, I'm very happy to hear that Perl is supporting UTF-8 better now. All the

[Flightgear-devel] perl scripting

2002-12-18 Thread Curtis L. Olson
I'm playing around with an external perl script[1] for flightgear. I've been using the http interface, but as I do more and more things, that is turning out to be a performance bottleneck. Has anyone interfaced to FlightGear's telnet service from a perl script. I'm sure I could figure it out,

Re: [Flightgear-devel] perl scripting

2002-12-18 Thread Norman Vine
Curtis L. Olson but what worries me is how to translate a chunk of binary data into perl variables ... probably easy once you know the tricks. http://www.swig.org Norman ___ Flightgear-devel mailing list [EMAIL PROTECTED]

Re: [Flightgear-devel] perl scripting

2002-12-18 Thread Norman Vine
Norman Vine wrotes: Curtis L. Olson writes: but what worries me is how to translate a chunk of binary data into perl variables ... probably easy once you know the tricks. http://www.swig.org for example if you extract the included tarball somewhere and assuming you have swig