while ($HTMLLine=) { ... whatever you need to do for interpolation print $HTMLLine; }