in reply to Changing the location header when a port and form data are envolved.
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:
should be replaced by:$requestedAppPath = $apps{$requestedApp}; You rarely need to iterate over hash keys.#Match $requestedApp to an executable path. foreach $appkey (keys(%apps)){ if ($appkey eq $requestedApp){ $requestedAppPath = $apps{$appkey}; break; } }
Hope this helps,,,
Aziz,,, Update: Your code has a missing assignment "=" also:
%apps = qw(
USA C:\Apps\USA\USA.EXE
);
|
|---|