in reply to hash parameter question
I'm not familiar with User::pwent. However, your find_deletion_candidates sub doesn't make much sense to me.
The keys of %users are usernames , so what are
%user and $user{uname}?
(Update: I guess you got several answers while I was looking at your code...)
(Update: I guess you got several answers while I was looking at your code...)
In Section
Seekers of Perl Wisdom