in reply to .htaccess and cgi

i am trying to figure the best of setting different levels of user access on a web page with .htaccess and perl cgi.