Hi, On 2007/02/26, at 02:26, Thomas Yan wrote:
Hello,Hi all. How do I, inside Perl, get the path of the home directory? I assume if I can do this, it will only work under Linux / Unix?Under windows you can use print $ENV {USERPROFILE} to get the home directory. such as: C:\Documents and Settings\yantaoUSERPROFILE is the environment variable.
You can also use the File::HomeDir module, that implements the abstraction for those operational systems.
HTH! -- Igor Sutton Lopes <[EMAIL PROTECTED]>
PGP.sig
Description: This is a digitally signed message part
