Re: $ENV HOME on windows



Petr Vileta <stoupa@xxxxxxxxxxxxx> wrote in comp.lang.perl.misc:
"Ilya Zakharevich" <nospam-abuse@xxxxxxxxx> pí?e v diskusním pøíspìvku
news:f0opmc$27r$1@xxxxxxxxxxxxxxxxxxxxx
What puzzles me deep is why Perl on Windows is not faking $ENV{HOME}
if $ENV{HOMEPATH} and $ENV{HOMEPATH} are both present... I think this

One of these should be $ENV{HOMEDRIVE}

would remove at least 10-20% of porting problems...

From which hell get you HOME variable? :-)

The suggestion is for Perl to *fake* it in %ENV, deriving the value
from $ENV{HOMEDRIVE} and $ENV{HOMEPATH}. The system environment
doesn't have to have HOME for that.

Anno
.



Relevant Pages

  • Re: Opening file($ARGV) with Getopt - failing
    ... off targeting newer features, especially since many times programs are ... > written in perl, and a frustrated user. ... suggestion, which may be a bit over the top. ... I disagree completely. ...
    (perl.beginners)
  • Re: Am *I* allowed to make a suggestion for PG
    ... > that or live in a moderated group only. ... Am *I* allowed to make a suggestion for PG FLAME ... Am *I* allowed to make a suggestion for PG HELPUL_RESPONSE ... Not that I'm putting Perl down. ...
    (comp.lang.perl.misc)
  • Re: Use different modules based on variable
    ... and I see that my suggestion is working: ... $ perl test.pl 1.1 ... and does not load them a second time. ...
    (comp.lang.perl.misc)
  • Re: perl script to write to a text file
    ... > really follow your suggestion. ... > just started using perl a couple of days. ... "perldoc" is a utility commonly used to read the documentation that comes ... for Windows comes with documentation in HTML format as well. ...
    (comp.lang.perl.misc)
  • Re: A Database Client with a GUI under FC1 ?
    ... Thanks for the suggestion. ... > It is written with Perl, and works with MySQL which is an open source ...
    (Fedora)