Root wrote:
> if ($path_info =~/menu/) {
> &menu;
> };
> if ($path_info =~/top/) {
> ⊤
> };
> if ($path_info =~/main/) {
> &main;
> };
validate $path_info to make sure it has an acceptable subroutine name, then
replace the above stuff with:
&$path_info();
As another tip, you shouldnt ever print() from your subs, you should return
a string, and print when you are ready. The CGI programs I write rarely
have more than one print statement. It makes the code easier to maintain
and debug.
$output = &path_info();
print $path_info;
Todd W.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]