Hey Michael,
Wednesday, June 27, 2001, 3:17:32 AM, my MUA believes you used
(X-Mailer not set) to write:
MF> On Wed, Jun 27, 2001 at 02:37:55AM -0400, Adam Theo wrote:
>> i am looking for a way my perl program can automatically get the
>> home directory of the user.
>> linux, windows, mac, etc? also, what does ENV do for windows and
>> mac users, since those are not typically milti-user OSes? and
>> finally, while i have found the ENV, does anyone know of a better
>> way to do this? thank you for your time.
MF> I know Windows has environmental variables, and Perl can get to
MF> them. I'm not sure if $ENV{HOME} will have a sane value, or any
MF> value at all.
My Win32 machine has no "HOME" var (typical), it has
HOMEDRIVE=C:
HOMEPATH=\
Not what you are looking for I believe.
MF> There is no real concept of a home directory anyways, unless you
MF> count the primary hard drive, aka C.
If you are running in a "Domain" or "Active Directory" environment,
the admins could have set up a "home" dir on a network server, but I
don't think it will be set in the $ENV{HOME} variable... If
interested, I can check when at work monday. Let me know.
MF> I can't help you with Mac
Same here...
--
[EMAIL PROTECTED]
Using The Bat! eMail v1.53d
Windows NT 5.0.2195 (Service Pack 1)
Why get even, when you can get odd?