Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6877069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:33:20+00:00 2026-05-27T04:33:20+00:00

I started learning Perl with the basics, then discovered and learned Moose, wrote an

  • 0

I started learning Perl with the basics, then discovered and learned Moose, wrote an entire application with Moose, only to discover it had to run under mod_perl. So I throw my code up on the servers with mod_perl, and a whole bunch of stuff is going wrong. For one the session information is corrupted and things that were supposed to timeout aren’t — and just a whole bunch of other problems.

What generally needs to happen beyond say culling global variables to make a code function as intended in mod_perl? Does mod_perl play nicely with Moose? Are there any gotchas with Moose under mod_perl, or weird things generally from mod_perl I need to look out for?

One thing I’ve learned so far is that since the code is compiled and created in an Apache namespace, the global variables never actually get destroyed — and you have to clear them by initiating them =/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:33:21+00:00Added an answer on May 27, 2026 at 4:33 am

    We’re using Moose with mod_perl quite happily.

    I’ll bullet-point some context – it’s pretty common …

    • RedHat Enterprise 5
    • Apache httpd 2.2.19 + mod_perl
    • Perl 5.8.8
    • bleeding edge CPAN dependencies for everything else (inc. Moose) via local::lib
    • all code and much context loaded up before forking

    I can’t speak for memory leakage etc. We have MaxRequestsPerChild=1000, but I’ve never been anywhere where that wasn’t set to something sane.

    Our test suite doesn’t touch Apache (Plack helps a lot).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have started learning perl and like to try out new things. I have
Just started learning Groovy, got the PragProg book Programming Groovy and had a problem
I started learning how to make a module in perl with perltoot : package
I have recently started learning Perl and one of my latest assignments involves searching
I've been working with Perl for years and recently started learning how to do
I have just started learning Perl scripting language and have a question. In Perl,
I'm learning Modern perl - Moose, Plack etc. In much advices you can read
I started learning Rails only a few days ago, but in the mean time
Started learning Wicket after ASP.NET MVC and feel a little bit confused about managing
I started learning Java. When would I use a HashMap over a TreeMap?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.