Trap 5 - danger lurks below 

sub logged_on_users {
  return map { $_->username }
         values %sessions;
}
sub logged_on_users {
  return sort
         map { $_->username }
         values %sessions;
}