in reply to Getting a self-referencing script URL (was: Seeking wisdom again...)

You might try the following, which should work if the script is simply calling itself again:
my $script = __FILE__; print "<form name='test' action='$script'>";


Hot Pastrami