I've written my own library 'package', for a site i'm building. i bring it in with a 'use', and do libname::func_name() for the functions. i have no interest in doing OO with this. what i want, however, is to have the parent apache process load this package, offloading it from the children.
can i just do a require in /usr/include/apache/modules/perl/startup.perl ?? what about the fact that it's in the same dir as the scripts themselves, which currently allows me to do the 'use', and not in @INC? also, i plan on using Apache::Reload in the future, with the touch file mechanism. so i want to make sure that whatever changes i make now, will be good for Apache::Reload.
ps. i'm totally happy with the current 'use' and libname::func_name(), and have no interest in changing that.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.