I know how to use the while (<>){} method of reading from a file, but my question is this. What if ARGV is given a folder name. Then, a subroutine parses all the folders below this folder, until it gets to a file. Now I want to be able to read a line from that file. Any help would be greatly appreciated. Thanks.