http://www.perlmonks.org?node_id=180665


in reply to Getting data *INTO* __DATA_

I wrote an html template today, saved a generic template and placed #WORDS where I knew values would change. I read the file in to an array one line at a time and then, because i knew what lines the #'s were on, I s/#THIS/$form{'that'); on each line that needed s/ing then printed the array out to a dynamically created unique output file...worked rather nifty if I don't say so myself! I guess though, I am missing your point? What is usually before the header print? please clarify for this old lady?

TexasTess
"Great Spirits Often Encounter Violent Opposition From Mediocre Minds" --Albert Einstein