in reply to Unwanted instances of perl script

It is hard to help without a more precise idea of your code. Could you trim down your script to its essentials and add it to your post like this:
<readmore><code> ... put your code here ... </code></readmore>

Best, beth