in reply to Using CGI and perl to specify modes which control page functionality.
If you move to an MVC type web templating engine like Catalyst, managing authorizations becomes very easy. You can then filter the content that is viewable depending on the authorization settings of the logged-in user.
Reading this section of the Catalyst Manual will give you an idea of how it works.
Basically, you can then manage content viewed in your controllers:
# Check user roles if ($c->check_user_roles('admin')) { my $action = whatever you want your action to be here ({ for example, you can call a specific template from template toolk +it and display content tailored for that user there }) }
|
|---|