http://qs321.pair.com?node_id=861755


in reply to Multiple files opened

Hi kokakola613... "I wasn't surprised the above didn't work, since INP would have to be closed for the other file to be read in the subroutine I called. " . I don't think you need to close INP since Perl is intelligent to close it automatically. Also, as ahmad said .you don't need REX to read line...