in reply to Re: Re: problem with exists
in thread problem with exists

When reading lines from a file, it's usually necessary to chomp them before using them as hash keys, as they often have newlines.

You could insert a debugging line in your foreach loop:

print STDERR "Name is ->$onname<-\n";

The extra punctuation will make any whitespace rather visible. chomp is probably exactly what you need, like chomp @newest_members; or chomp $onname;