in reply to Convert Perl module to Web Service?

Well, the traditional approach would be CGI but you might want a higher level of abstraction like CGI::Application or Catalyst. If you're looking for something that will work without a web server, you might like HTTP::Engine.

PS: If you're serious about running a "web service" you might want to search CPAN for SOAP or REST.