Im not sure where to start with this perl assignment. Here's the question:
Write a grouping program. It takes a file and a positive integer N as input. Each line of the file contains a person's name. The program goes through the input file from beginning to end, and forms groups of N members. For each group, it prints the group number, then the N names on N lines respectively. Note that the last group may contain <N members.
Please help me write this program!! thanks
Write a grouping program. It takes a file and a positive integer N as input. Each line of the file contains a person's name. The program goes through the input file from beginning to end, and forms groups of N members. For each group, it prints the group number, then the N names on N lines respectively. Note that the last group may contain <N members.
Please help me write this program!! thanks