The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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 ()

Take HOME if set (with assertments), otherwise xeffectiveuserhome.

NOTE

This is alpha software! Read the status section in the package README or on the website.