afternoon brothers of the cloth (or whatevr time it is with you)
I'm working on a web app which is mostly perl cgi. I use apache on my machine at home, with a dir 'dev' for my own latest code, another slightly more stable version on the root of the server that other peeps see. I also have some stuff in libraries. For the stable code this is at /usr/local/lib/site-perl - my unstable version is in the 'dev' directory.
The problem was to make my dev code all see the local library, not the one in /usr ... to do this I have
use lib "..";
in my files. It does nothing in the stable version, as there are no lib files at the server root, but in my dev code my unstable lib is seen before the stable one. Then I can commit and export, see the right code with no changes.
Of course, it breaks my scripts (all with -T) the moment I call sendmail. Took me a while to figure out. OK. So I change to:
use lib "/var/www/dev";
where necessary - but I still get the "insecure path" message. Hmmm. Why? ($ENV{PATH}, printed out right before taint complains, is
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games)
And what is a better way of getting to say which library should be seen. I need something like a config file that specifies locations perhaps? I'm sure there is an easy, clean way ..
Many thanks, and happy $%@ing.
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.