Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Can't locate in @INC (@INC contains: .)

by soonix (Canon)
on Oct 31, 2019 at 10:08 UTC ( #11108157=note: print w/replies, xml ) Need Help??

in reply to Can't locate in @INC (@INC contains: .)

I see the problem at hand is solved, but you should look after that old perl
Built 17:16:22 Jan 2 2002
That's nearly old enough to vote :-)

I'd look where it is located, and, more importantly, where / by whom or what it is used. There have been significant enhancements since 5.6.1, so it might be worth the hassle to lift that user to a newer version.

  • Comment on Re: Can't locate in @INC (@INC contains: .)

Replies are listed 'Best First'.
Re^2: Can't locate in @INC (@INC contains: .)
by Weiling (Novice) on Oct 31, 2019 at 10:23 UTC
    Hum, that's not solved for me :s. He gave me the good version manually, but sill not ok when i just do "perl -v". Strange too, i just install the last version of Strawberry Perl, do you know why the system still see this old version? In "Programs and Features" i only have Strawberry. i'm sorry, but i'm a totally newbie on Perl! ...

      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.


      Both Strawberry and ActiveState behave pretty well according to Win32 path and install standards. Whether the previous admin of this box kept to those standards, might be another story. Managing environment variables on Windows Server 2012 is more of a Windows Server admin question than a Perl question. That being said, it's pretty easy: Control Panel > System and Security > System > Advanced System Settings, and then look for the Environment Variables button (might be in a different tab), or ask your network admin for assistance.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11108157]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2020-07-12 17:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found