in reply to Re: Opening files in a loop
in thread Opening files in a loop

Two-arg open() considered dangerous explains the 3-arg open part of, It's customary nowadays to use a lexical handle and 3-arg open...