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


in reply to (Ovid) Re: How do I read 5 lines from a file that's read from a directory that's being listed
in thread How do I read 5 lines from a file that's read from a directory that's being listed

My mistake. What the program does is print the list of the file names and links them to the original file. It also prints the entire file below the link (not just the first 5 lines). Then it goes to the next file and does the same thing.