What does "OP" mean?

Essentially, when the mod_perl server starts up it parses a set of files that can dynamically change between server restarts. The initaliziation script then parses the files creating code segments which it then expression evals once to check that the code is a) valid and b) if it is returns the coderef to the compiled code.

If the code did not generate any *syntax* errors then I store the coderef in a hash for further usage by my content engine, if it failed then the error is stored instead of a coderef.

The basic premise here is that the code pieces being stored are APIs to be used by my content engine, parsing the files and storing the API code snippets as coderefs allows quick and easy access to the compiled code.

The solution provided by Abigail below simply helps me find out where a non-syntax error occured when all the info I get is the "eval xxx" in the error log.

Hopefully this is making more sense now, for an example of the project this is running on check out http://beta.dereth.ac/ which is one of the sites currently running on my engine. :)

In reply to Re: Re: Is it possible to determine the eval block accumulator? by BlacKat
in thread Is it possible to determine the eval block accumulator? by BlacKat

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.