Thread View: comp.lang.perl.misc
2 messages
2 total messages
Started by Luca Ronchi
Mon, 04 Mar 1996 11:37
Need Perl to C translator
Author: Luca Ronchi
Date: Mon, 04 Mar 1996 11:37
Date: Mon, 04 Mar 1996 11:37
5 lines
733 bytes
733 bytes
I need a Perl to C translator, because I must include some stuff in a C program. Is out there something, or there is another way of executing Perl scripts without the interpreter; I mean can a perl script be made in a executable ? Any help will be appreciate.
Re: Need Perl to C translator
Author: Tom Christiansen
Date: Mon, 04 Mar 1996 15:06
Date: Mon, 04 Mar 1996 15:06
44 lines
2235 bytes
2235 bytes
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
Luca Ronchi <ronchi@cache.iet.unipi.it> writes:
:I need a Perl to C translator, because I must include some stuff in a
:C program. Is out there something, or there is another way of
:executing Perl scripts without the interpreter; I mean can a perl
:script be made in a executable ?
Help #1: read the fine perl FAQ, even if it is outdated. There's
a question addressing this; #3.5 to be precise.
http://www.perl.com/perl/faq/Q3.5.html
Help #2: think about whether you can just call your perl program
using system() or popen().
$ man 3 system
$ man 3 open
Help #3: think about whether you can embed your C program in the
perl one. For that, see the perlxstut(1) man page. It's
probably more sensible to do more work at the higher level
language (perl), leaving little painstaking busiwork for the
low-level one (C).
http://www.perl.com/perl/manual/perlxstut.html
Help #4: think about whether you can embed your perl program in the
C one the way the perlembed(1). It's probably
more sensible to do more work at the higher level language.
http://www.perl.com/perl/manual/perlembed.html
Help #5: There's actually a p2c compiler to convert your perl code
into C that in alpha state right now, but it's not released to
the general world yet.
--tom "the net helps those who help themselves" christiansen
--
Tom Christiansen Perl Consultant, Gamer, Hiker tchrist@mox.perl.com
/* dbmrefcnt--; */ /* doesn't work, rats */
--Larry Wall in hash.c from the v4.0 perl source code
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads