If I have a file .pm, is there any way that I can have useit without putting it in my path @INC? I think that would be clearer in my particular use case - clearer than using relative paths or adding this directory to @INC.
Edit: Clarification:
I was hoping to avoid having to iterate over each item in @INCand instead indicate directly which file is of interest to me. For example, in Node.JS, it require('something')will search for a list of paths, but it require('/specific/something')will go right where I say it.
In Perl, I'm not sure if this is the same functionality as in require, but it seems to work.
However, instructions userequire simple words. It puzzled me a little how to enter the absolute path.
source
share