Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 35335 invoked from network); 7 Jan 2011 00:45:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2011 00:45:06 -0000 Received: (qmail 26888 invoked by uid 500); 7 Jan 2011 00:45:06 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 26800 invoked by uid 500); 7 Jan 2011 00:45:05 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 26792 invoked by uid 99); 7 Jan 2011 00:45:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 00:45:05 +0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bigal@mollensoft.com designates 64.202.189.88 as permitted sender) Received: from [64.202.189.88] (HELO k2smtpout01-01.prod.mesa1.secureserver.net) (64.202.189.88) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 07 Jan 2011 00:44:56 +0000 Received: (qmail 5495 invoked from network); 7 Jan 2011 00:44:31 -0000 Received: from unknown (HELO mollensoft.com) (208.109.116.39) by k2smtpout01-01.prod.mesa1.secureserver.net (64.202.189.88) with ESMTP; 07 Jan 2011 00:44:31 -0000 X-DN-AuthenticatedSender: XY9HLM4M3LKF6MCLR6TYXRACPXMWNY34-p3C3IyPnowbqgg4qe lL5bA/WfqYFUnm7CzCtxNXdngsJSCyrZREKza/Eik/aluHt--- Received: from 98.204.59.86 ([98.204.59.86]) by mollensoft.com (DeskNow) with SMTP ID 954; Thu, 6 Jan 2011 18:44:30 -0600 (EST) Subject: Re: Where to find information on how to embed perl into C(++)? From: Al Mollenkopf To: Manuel Reimer Cc: dev@perl.apache.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 06 Jan 2011 19:45:27 -0500 Message-ID: <1294361127.30655.15.camel@dragon-u2> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Manuel, this is a relatively complicated topic, so if you receive no other help, I'd recommend trying to grab a used copy of "Extending and Embedding Perl" from Amazon.com (should be able to ship there). It's no panacea but been pretty valuable to me over the years and will likely provide you with some foundational knowledge that will enable you to get to your destination. I'd recommend starting with Chapter 8 where the discussion focuses initially on when to embed and when not to embed perl into C, passing data, etc. HTH, Al bigal@mollensoft.com On Thu, 2011-01-06 at 18:01 +0100, Manuel Reimer wrote: > Hello, > > I'm posting to this list, as I think the people around mod-perl have a good > knowledge about how to embed perl into applications. > > I've searched the web for good information, but anything, i found, wasn't very > useful. "man perlembed" only tells some raw basics and doesn't really help me to > find where to start. > > What I want to do is to use perl to create plugins for an application, which > usually gets extended using C++. So what I want to do is a C++ plugin for that > application, which loads a perl script and exports parts of the API into the > namespace of this perl script. > > A big problem is, that I need bidirectional communication from C to perl and > back again. Means, that I need some way to call functions in the C application > from perl. Most documentation, out there, only covers calling perl functions > from C but not the other way. > > It would really help me, if someone could point me to good documentation about > embedding perl. I would prefer to get something in printed form, but the only > book, I found (Extending and embedding Perl) is not longer available in Germany. > > Thank you very much in advance > > Yours > > Manuel Reimer > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org > For additional commands, e-mail: dev-help@perl.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org