Read the vaue from array in perl : I have array defined as below

I am able to fetch the value for email and uid as mentioned below , how do I get the user display name 'userdn' . Sorry I am new to perl.

    my ($mesg) = $ldap->search(
        scope  => 'one',
        base   => $userdn,
        filter => $filter,
        attrs  => [ 'email','pwdChangedTime','uid' ],
    	);


Please suggest.
This is how I read mail id and uid but not able to ready user display name.

    foreach my $entry ($mesg->all_entries){
    	$email       = ${$entry->get('email')}[0];
            $uid         = ${$entry->get('uid')}[0];
            $uName         = ${$entry->get('userdn')};
    }