in reply to Re^3: extracting from 1 file and adding to another.
in thread extracting from 1 file and adding to another.

You probably don't want to open the file for each element of the @emails list.

Well done is better than well said. -- Benjamin Franklin

Replies are listed 'Best First'.
Re^5: extracting from 1 file and adding to another.
by marinersk (Priest) on Oct 19, 2013 at 14:35 UTC
    But even if you did want to open the file with each entry, I suspect you would want to close it with each entry, also.  openand closeare reciprocal functions; they should be used reciprocally.

    Of course, that would only enhance the inherent inefficiency of repeatedly opening the same file over and over again.  :-)