Help for this page
use Win32; $login = Win32::LoginName;
use Win32::NetAdmin; $user = Win32::LoginName; # grab the name of the current user ... $privilege, $homedir, $comment, $flags, $scriptpath); print "The homedir for $username is $homedir\n";