slightly longer ansewr: have your frame source point to that script src="perlscript.pl" or target the links <a href="/cgi-bin/perlscript.pl" target="x-frame">somelink</a>
He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.