Well, I've nearly finished polishing up the module itself--still some work to do on the testing script, but it is at least functional. The module, however, is not working properly on my machine, and produces failure messages in the logs. I have put the full code, as I intend soon to publish it anyhow, on my scratchpad: Polyglot's scratchpad.

The errors I'm getting look like this:

[Mon Oct 30 05:11:03.311339 2023] [core:error] [pid 188075:tid 1396602 +23264320] [client 192.168.1.101:53954] Premature end of script header +s: test-thai-mod.pl [Mon Oct 30 05:11:03.311358 2023] [perl:warn] [pid 188075:tid 13966022 +3264320] /cgi/test-thai-mod.pl did not send an HTTP header [Mon Oct 30 05:11:03.311388 2023] [:error] [pid 188075:tid 13966022326 +4320] Undefined subroutine &ModPerl::ROOT::ModPerl::PerlRun::var_www_ +cgi_test_2dthai_2dmod_2epl::IsThaiLCons called at /var/www/cgi/test-t +hai-mod.pl line 24.\n
The "did not send an HTTP header" has nothing to do with the header, but with premature exiting of code execution due to other problems. The "Undefined subroutine" seems to be the issue, and I have no clue why. Once, with a similar error message, I restarted the apache2 server and all was well. But that no longer works on this new message. I am left not knowing whether my apache2 server is at issue, or whether it is this code--but probably the latter. There's certainly no point trying to publish code that is not first functional, so any help on this would be much appreciated.

Blessings,

~Polyglot~


In reply to Re^4: Listing out the characters included in a character class [v5.38] by Polyglot
in thread Listing out the characters included in a character class by Polyglot

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.