I believe what you want would be done by giving the parent page a frame name, then adding
target="parent_frame_name" to the
<form> tag in the popup window. You can also add an
onLoad="" to the
<body> in the output of the Perl script that will close the popup.
Makeshifts last the longest.