in reply to embedding perl in c++

G'day divitto,

Welcome to the monastery.

"... and done my reading in every O'reilly "insert animal here" book i could find, ..."

How about the one with the Black Leopard? That's "Advanced Perl Programming": there's two editions although, in my opinion, that really should be two volumes as there seems be be very little overlap in the content.

There's also the "Perl ways to embed perl in your C or C++ application" documentation which is part of the standard Perl distribution. That's in the "Internals and C Language Interface" section so possibly doesn't align with your "by easy i mean not having to delve into the internals of perl ..." statement.

-- Ken

Replies are listed 'Best First'.
Re^2: embedding perl in c++
by divitto (Novice) on Mar 14, 2014 at 02:03 UTC

    Thanks for the info! i have read the chapters that involve embedding perl from the panther book, i plan on reading the rest as soon as i can. it seems like a great book, chapter 19 talks about a simple way to do it but it doesn't go into much detail and chapter 20 (the one that i think goes in depth) is lost on me. I haven't read your reference to the documentation though so i will definitely check those out.

    EDIT: On second thought i have read your first link, although this being my 5th or so time through it i think i might understand it a little better. Where i get lost is where it starts talking about xsubbs, and calling from the stack is a bit fuzzy.

    From what i make of it, I'm supposed to include the perl core files, adjust the C environment to handle the interpreter, and then i can run my scripts by putting the script file name in the argv array as if it was from the terminal. is that about right? Now im starting to feel like i was over thinking it...