NAME
Chj::xhome
SYNOPSIS
DESCRIPTION
Get the user's home directory in a safe manner.
- xHOME ()
-
Just the $HOME env var, dieing if not set, and also checked against a couple assertments.
- xeffectiveuserhome ()
-
Just the getpwuid setting. Throws unimplemented exception on Windows (Raspberry, not Cygwin Perl).
- xsafehome ()
-
Always take xeffectiveuserhome (unless on Windows, in which case this is currently the same as xhome), but is asserting that HOME is the same if set.
- xhome ()
-
Tries $ENV{HOME} then glob "~" if exists (with assertments), otherwise xeffectiveuserhome.
NOTE
This is alpha software! Read the status section in the package README or on the website.