16.4. Exercise

See Appendix A for the answer.

  1. Write a program to create a mapping of userIDs and real names from the password entries, then uses that map to show a list of real names that belong to each group in the group file. (Does your list include users who have a default group in the password entry but no explicit mention of that same group in the group entry? If not, how would you accomplish that?)

Get Learning Perl, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.