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

The first thing those error messages tell me is that ModPerl::ROOT::ModPerl::PerlRun::var_www_cgi_test_2dthai_2dmod_2epl is not a typo; so, my guess without seeing any code, was incorrect.

All of the new errors are "Prototype mismatch". Myself, and many others, would generally advise against using prototypes (see the recent thread: "Too many arguments for subroutine"). Probably the best thing to do is just get rid of them; failing that, ensure you call your subroutines such that there is no mismatch with their prototypes.

The last error you list, which you showed in your earlier post, "Undefined subroutine", is easily fixed: add sub IsThaiLCons { ... whatever it's supposed to do ... } to ModPerl::ROOT::ModPerl::PerlRun::var_www_cgi_test_2dthai_2dmod_2epl.

— Ken

Replies are listed 'Best First'.
Re^8: Listing out the characters included in a character class [v5.38]
by Polyglot (Chaplain) on Oct 30, 2023 at 14:14 UTC
    Ken,

    I appreciate your assistance. Regarding "ModPerl::ROOT::ModPerl::PerlRun::var_www_cgi_test_2dthai_2dmod_2epl"...I have no idea what this is. It's obviously related, somehow, to Apache's ModPerl feature. I don't think it has anything to do with Perl, and it most certainly is not anything I created. The "var_www_cgi_test_2dthai_2dmod_2epl" part is a recognizable encoding of some sort for my actual file, i.e. "/var/www/cgi/test-thai-mod.pl". That is the full path of the file...there is no "ModPerl::..." behind it.

    Error messages often are most unhelpful. This is just such a case. It was a "ModPerl::ROOT::ModPerl::..." error of some sort that once disappeared after a "service apache2 restart" command (after spending several hours trying to puzzle it out with my code); but I have not been so lucky with this second round. Of course, Googling it gets me nowhere, other than to a realization that, as is often the case, I'm quite unique. I'm actually relatively certain that my code is not the culprit...but things never seem to work like they should for me, so perhaps I'm just oblivious to something I've done wrong.

    Blessings,

    ~Polyglot~

      It's more than two decades since I did any serious work with Apache or mod_perl. I'm not in a position to offer any assistance in that area.

      — Ken

Re^8: Listing out the characters included in a character class [v5.38]
by Polyglot (Chaplain) on Oct 30, 2023 at 14:22 UTC
    Also, I have no idea what "prototypes" mean with respect to Perl. If I'm using any, it is in complete ignorance of what they are or what they are called. My previous version of the module, before I changed the subroutine formatting and added the "list" routine, did not generate such an error. It actually ran. So, I'm considering reverting all the work I put into such a nice formatting as I have now, and going back to what I had before. Ugly that works is better than useless beauty--though it could be somewhat less ugly than before.

    Blessings,

    ~Polyglot~

      "I have no idea what "prototypes" mean with respect to Perl."

      Well, I provided you with a link: "Too many arguments for subroutine". That discusses prototypes, has links to Perl's official documentation as well as other PerlMonks' discussions. It's up to you whether you read it.

      — Ken

        Well, I have now read that entire thread...and learned two things that pertain to my issue with "prototypes."
        1) The error is a red herring, because I am not using any prototypes in my code (never have); and

        2) The error would likely not exist if I were using an older version of Perl.

        I'm not impressed. It looks like, as someone else alluded to, the problem's source is not my code, but rather that of Test::more. Perhaps I should bid it farewell...but for now, I will just have to overlook the red herrings in the logs. On a more important note--could the inclusion of Test::more be the cause of any or all of my other troubles with this script? Hmmm....maybe I will have to try ditching it after all.

        Blessings,

        ~Polyglot~