in reply to Changing the location header when a port and form data are envolved.

Hello

This is just a comment about this clock. You are thinking way too much while you should be reading the documents (perldoc perldata now). You will see that this block:

#Match $requestedApp to an executable path. foreach $appkey (keys(%apps)){ if ($appkey eq $requestedApp){ $requestedAppPath = $apps{$appkey}; break; } }
should be replaced by:$requestedAppPath = $apps{$requestedApp}; You rarely need to iterate over hash keys.

Hope this helps,,,

Aziz,,, Update: Your code has a missing assignment "=" also:

%apps = qw(
    USA C:\Apps\USA\USA.EXE
);