Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Calling the correct perl binary

by sundialsvc4 (Abbot)
on Apr 04, 2011 at 17:54 UTC ( #897373=note: print w/replies, xml ) Need Help??

in reply to Calling the correct perl binary

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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://897373]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-01-22 19:30 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (236 votes). Check out past polls.