in reply to combining multiple files into one file

You don't say what error you are getting.

I notice too that you have commented out use strict; - why?

Lastly, concatenating HTML files together into one large file is unlikely to be what you actually want to do. It almost certinally will not result in a valid HTML file.


DWIM is Perl's answer to Gödel