September 25th, 2003, 02:26 PM
mix c with perl?
is there someway possible to mix perl into C source and compile it? also being able to use global variables in both sections would be necessary as well.
September 25th, 2003, 03:25 PM
From the ActivePerl documentation:
ActivePerl is a Windows port available for free at http://www.activestate.com/ . They also have Linux and Solaris versions as well as the same for python and tcl.
Also, on the "C and Perl" resource page at at perl.com (http://www.perl.com/cs/user/query/q/6?id_topic=20 ) are links to the following articles:
Calling Perl from C Programs
An introduction to calling Perl subroutines directly from C, i.e., how to write callbacks. Examples of error handlers and event-driven programming are shown.
How To Embed Perl In Your C program
This document describes how to embed a perl interpreter and perl programs in a C program.
Tutorial for XSUBs
A tutorial on using XSUB to create extensions.
XS Language Reference Manual
A description of XS and XSUB, an extension interface for defining external subroutines.
September 25th, 2003, 03:27 PM