Now that recent versions of Perl have removed "." from @INC, I'm curious about best practices for module file location. Until now, the *.pm files associated with each application on our web site were in the same directory as the scripts. This, I gather, creates a security vulnerability.
We don't have write access to the remaining directories in @INC.
We could just leave the pm files where they are, and add use lib ".";
to all our existing scripts, but wouldn't this just preserve the security vulnerability?
Any suggestions on how our Perl scripts and their associated modules can be best organized in the light of this new development?
.
is not where the script is located, that's$FindBin::Bin
..
is from where the script was called. – choroba$FindBin::RealBin
instead of$FindBin::Bin
given free support for symlinks to your executable. – ikegami@INC
-- and I doubt you are -- it wouldn't help at all! For all we know, the OP is using Plack, so your comment is not constructive or useful at all. – ikegami