Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Any thoughts?

    Yes. It's late. Get some sleep before you start hacking. :-)

    If you've got a lot of common code that's mostly similar except for a few parameters, that's a sign you should centralize your common code in a module, not a template to simplify cargo cult coding (dynamically generated or otherwise). Your first instincts were correct. ;-)

    There are instances where template-generated Perl scripts would be useful. I've thought about hacking/replacing h2xs so it becomes a tool to start common

  • Another benefit to modules is that you can pre-load them when Apache starts. This has the potential to save quite a bit of memory, sharing them across child processes. (Modules also tend to be much easier to test than scripts.)