There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

MYDan::Util::Sudo - Become a user by setting uid or invoking sudo

SYNOPSIS

use MYDan::Util::Sudo;

MYDan::Util::Sudo->sudo( 'joe' );

Methods

sudo( $user )

Become $user ( default root ).