Inserting code into HTML header

[email protected] ("[email protected]")
Newsgroups perl.cpan.discuss
Organization http://groups.google.com
Message-ID <[email protected]>
It's been awile since I last coded Perl, and a lot of changes have been
done to the language itself, cool stuff like OO-adjustments etc. Like
it a lot!!

However, I wonder if anyone can help me to solve a small problem I
have: I would like to read contents of a file containing JavaScript and
insert it into the <head>-part of HTML pages that pass through the
program, I've looked at HTML::HeadParser, and would like to use that
module instead of parsing the whole HTML file in order to gain speed,
and wonder if anyone could submit some code on how it best would be
done to parse the header, insert a file conaining text and then feeding
the rest of the document to the client browser.

Thanks a lot!
/Eyji
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.