in reply to Writing many lines to a file

Another method to write 100 lines: print FILE "line\n"x100;
Sorry if my advice was wrong.