http://www.perlmonks.org?node_id=1214602


in reply to printing out users without home directories

This allows me to put all users into an array called @passwd_entries. How do I print out all users without /home directories?

for(@passwd_entries) { print "/home/$_ does not exist\n" unless -d "/home/$_"; }
See -X and perlsyn.

(Fixed a couple of typos in updates.)

Cheers,
Rob