my $user_name = getlogin(); if ($user_name eq 'root') { }