The same thing can happen in-general when you’re deploying Perl scripts to shared-hosting web hosts. You basically wind up with unwanted dependencies upon “the globally-installed Perl,” which results in code that works here but doesn’t work there. Or, a deployed and running website that conks out because of something that you didn’t have anything at all to do with, any notification of, or any control over. (They always seem to make those changes at ungodly hours of the night.)
Indeed, the only way to obtain code that will reliably work when deployed, and that will reliably continue to work wherever deployed, is to make that deployment be completely self-contained.
I would love to know of a tool – and I am quite sure it is well-known (but not yet to me) – that, when pointed to the code in a particular directory, will locate all of the references to external packages that will be resolved by packages “in the environment,” that is to say, “outside of those directories which I designate.” It would likewise be useful if that tool scanned for “shebang” references outside. And it would be really useful if the module that did all of this usefulness was a Test::.
All of which means, no doubt, that surely there is just such a Test:: package... oui?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||