yaklichk0719 has asked for the wisdom of the Perl Monks concerning the following question:

I saw this in the bash_profile some setting: /perl5.10/bin for CentOS 6.3, where is my centOS 6.6 I find this: /usr/bin/perl. I am assuming this is where Perl executive are kept by default? I am trying to understand why in the first case they use it this way and does it make a difference when use Perl libraries in a packages? Thank you, Sergey

Replies are listed 'Best First'.
Re: /perl5.10/bin and linux
by hippo (Archbishop) on Jul 20, 2018 at 15:13 UTC
    I saw this in the bash_profile some setting: /perl5.10/bin

    Hello Sergey. What you have there is just (part of) a path. It would help to understand immensely if you were to provide the full statement from the .bash_profile which includes that path.

    my centOS 6.6 I find this: /usr/bin/perl. I am assuming this is where Perl executive are kept by default?

    Yes. On CentOS 6 (and many other OSes) /usr/bin/perl is the default location for the system perl. You can try it by running it with that full path like this:

    $ /usr/bin/perl -v This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.

    As to why the two profiles differ - you would need to ask the people who wrote them. Anything else on my part would be pure guesswork. Good luck.

Re: /perl5.10/bin and linux
by marto (Cardinal) on Jul 20, 2018 at 15:11 UTC

    "I saw this in the bash_profile some setting: /perl5.10/bin for CentOS 6."

    What setting? Be specific when asking for help. How do I post a question effectively?.

    "I am assuming this is where Perl executive are kept by default?"

    Yes, the system perl lives there by default. Often people install their own perl elsewhere on the system and edit the PATH environment variable, so if someone had built perl in /perl5.10/bin on the 6.3 server, and edited the PATH variable giving precedence to /perl5.10/bin running which perl would show:

    /perl5.10/bin/perl

    If modules are installed for this perl5.10 they won't show up under the system perl.

Re: /perl5.10/bin and linux
by LanX (Saint) on Jul 20, 2018 at 16:32 UTC
    you've posted your question 6 times already
    /perl5.10/bin and linux by yaklichk0719 /perl5.10/bin and linux by yaklichk0719 /perl5.10/bin and linux by yaklichk0719 Reaped: /perl5.10/bin and linux by NodeReaper Reaped: /perl5.10/bin and linux by NodeReaper /perl5.10/bin and linux by yaklichk0719

    I think you are realoading your page and reposting it. please stop doing so.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

A reply falls below the community's threshold of quality. You may see it by logging in.