in reply to getting unique AOH from nonunique AOH ... or hash if it is better approach

Your line push @nulogins, @login; is pushing each element of @login into @newlogins. I think you mean to push a reference to the entire @login array into the @newlogins list. push @newlogins, \@login. See perlref.

--MidLifeXis