Re: $ENV HOME on windows



[A complimentary Cc of this posting was sent to
A. Sinan Unur
<1usa@xxxxxxxxxxxxxxxxxxx>], who wrote in article <Xns991E5FEC1439Casu1cornelledu@xxxxxxxxx>:
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}

Yeah, thanks.

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

Which might be a problem for those of us who create a D:\Home and move
users' 'My Documents' folders to directories under D:\Home\<userid> and
add a HOME variable to each user's environment. I am assuming such
problems can be avoided by checking for the existence of of $ENV{HOME}
before faking it.

Hmm, I thought that this would be clear without saying... Sorry!

However, this means that the check and the decision as
to whether to fake $ENV{HOME} should not be done at install time but
each time a script is run.

Each time the interpreter starts.

Hope this helps,
Ilya
.



Relevant Pages

  • Re: offensive & untrue
    ... LOL;-0 thanks for that Jon, Like you said enough is enough but i will leave ... control panel then the view tab there isn't an option to show hidden folders. ... I will keep posting away, so all of you with your nose's in the ...
    (microsoft.public.windowsxp.general)
  • RE: Weird OWA Problem
    ... Authenticated Users group to access to the following folders: ... Basic NTFS Permissions for IIS 4.0 ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.exchange.admin)
  • Re: capture return value from a perl program
    ... Sinan Unur wrote: ... > posting, and now you are rapidly shooting TOFU at us. ... Just get a side hobby of sorts, like golf (or mini golf even), sloty car ... simply sit and monitor a news group for off topic posts all day. ...
    (comp.lang.perl.misc)
  • Re: Google Groups and netiquette
    ... >> wholesale killfiling of all Google Groups posts is beginning to ... > Maybe it's time to revise the posting guidelines. ... The only revision to the posting guidelines might be a note specific to ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: Is it just me---or is KDE faster than GNOME on v9.3?
    ... Yeah, I realized that I probably should have added a smiley immediately ... after posting that. ... No need yanking Kev's chain anymore than it gets in ...
    (alt.os.linux.suse)