On Thu, Aug 01, 2002 at 10:13:42AM -0700, Andrew Killam wrote:

> Hi, guys.  This is my first message to the list, so if I'm violating
> any posting procedures, please forgive me - I'll learn quickly enough.

The only thing I would complain about is that your lines are too long,
but I'd aim that more at hotmail than you, I suppose.

> I'm working a program manipulating trees read in from a database.  My
> employers want Perl used, but I believe parts of it would be better
> served using C functions and structs.

It would be interesting to know which parts and why.  Is this for speed
purposes, or some other reason.  You'll almost always spend _your_ time
better working with a higher level language, where you have a reasonable
choice.

> Does anyone know how to write C code in a Perl script?  Could you
> please point me to tutorials or similar sites, if you know of them?

I would checkout Inline.pm.  Look on search.cpan.org.

Other options include XS and swig, but I would start with Inline::C.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to