Quiq

 view release on metacpan or  search on metacpan

lib/Quiq/System.pm  view on Meta::CPAN

Prozesses.

=cut

# -----------------------------------------------------------------------------

sub user {
    my $this = shift;
    my $uid = shift // $>;

    return getpwuid($uid) // do {
        $this->throw(
            'SYS-00001: Benutzer existiert nicht',
            Uid => $uid,
            Error => "$!",
        );
    };
}

# -----------------------------------------------------------------------------



( run in 0.301 second using v1.01-cache-2.11-cpan-8d75d55dd25 )