good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Can't locate strict.pm in @INC (@INC contains: .)by davido (Cardinal) |
on Oct 31, 2019 at 15:39 UTC ( [id://11108180]=note: print w/replies, xml ) | Need Help?? |
Think of it this way: You have two versions of dosomething.exe installed; One lists files, and one prints hello world. You put the lists-files one in your path so that you can type "dosomething" and a file listing occurs. To get to the hello-world version, you have to use its fully-qualified name; the absolute path, because there are two different executables on your system by the same name. If you were to update your path to find the hello-world version of dosomething.exe first, it would win when you type the command name, and you would then have to type the full path to reach the list-files version of dosomething.exe You have two executables on your system that both are named perl.exe. One of them is a 2002 version of Active State Perl. One is a newer version of Strawberry Perl. They reside at different places on your filesystem, and their libraries live at different places. They usually can co-exist but it's possible the old ActiveState install is broken. But your question really relates to how to make Strawberry Perl's perl.exe get priority in your PATH. That would be the same question whether we're talking about perl.exe or dosomething.exe. Dave
In Section
Seekers of Perl Wisdom
|
|