Need help with flash[8]/Perl interaction

I am trying to build a flash based application which will have a login process for the user. I want to use Perl for the backend script (I want to learn Perl which is the major reason I am not using PHP for this) which will interact with a user:passwd type data file to validate the login. I came across this site offering an example on the exact same thing http://www.osix.net/modules/article/?id=651 but it is not working for me. I am running a win2k system with apache as the http server. When trying to login, it opens a new browser window instead of validating the login and then prints out this error:

   500 Internal Server Error  **Internal Server Error**

 The server encountered an internal error or misconfiguration and was unable to complete your request.
 Please contact the server administrator,   and inform them of the time the error occurred, and anything you might have done that may have caused the error.
 More information about this error may be available in the server error log.
  

Can someone help me out here please and tell me if there is something which should be changed in the perl/flash scripts or if possible direct me to a good source of examples or tutorials for the kind of thing I am looking for. Also, is it possible to use the same mechanism on a local machince without running it through a server? I mean can I use some modified version of the same flash/perl mechanism to run without a http server? Thanks.