in reply to Alternative to SSI
At last I've ended up using...
<script type="text/javascript" language="JavaScript" src="script.pl"></script>
This way turned out to be the most effective for what I needed to do :)
Thanks to all for your answers! These really helped!
Ralph :)