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...


In reply to Re^2: embedding perl in c++ by divitto
in thread embedding perl in c++ by divitto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.