in reply to how I can with perl script change path variable so that the changes remain with the system reboot?

That's not how environment variables work. Your Perl script gets a copy of your environment when it starts running. It can alter the environment all it wants, but it's only altering its own copy.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
  • Comment on Re: how I can change path variable so that the changes remain with the reboot?

Replies are listed 'Best First'.
Re^2: how I can change path variable so that the changes remain with the reboot?
by zeus83 (Novice) on Jan 09, 2014 at 11:28 UTC

    I used perl with Eclips and get error when using "use Moops;" my goal is that I just change path and these changes may remain when I reboot system

      "...remain when I reboot..."

      Yes shure. But your PATH is set in one of the configuration files of bash. See my first post. IMHO you need to figure out where it is set. This will also be the solution for eleminating possible duplicate entries in your PATH.

      And your PATH settings will only be persistent when you put them in one the bash configuration files

      Please see also bashrc (in german).

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

      That sounds like you need to change not the PATH but the include path, so either or reinstall Moops so that it is in a "standard" location.