Does Perl Need a Core Routine for Automatic Privilege Drop After Authentication?
When a Perl script authenticates a user against the system password database, the developer must manually adjust the real and effective UID/GID using $<, $>, $(, $) or POSIX::setuid/setgid and also verify the shadow expiration field (sp_expire) to reject expired credentials. Because this privilege‑reduction and expiration handling is left to each imple