Re: exit from subs // creating frames

2002-06-20 Thread Todd Wade
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 pr

Re: exit from subs // creating frames

2002-06-20 Thread Janek Schleicher
Root wrote at Thu, 20 Jun 2002 14:04:30 +0200: > ok, found a solution to display the framessets > although it works just fine, I would really appreciate comments etc on how to >optimize the code :) > ... > my $path_info = $q->path_info; > > > if (!$path_info) { > &frameset; > exit 0; > } > } >