my %_auths = ( PLAIN => \&_auth_plain, LOGIN => \&_auth_login, ); # preferred order of login methods my @_auths = ( LOGIN, PLAIN, );