http://www.perlmonks.org?node_id=856444

tpederse has asked for the wisdom of the Perl Monks concerning the following question:

Greetings all,

I have an existing Perl module that is written in object oriented Perl, and I'd like to make it available as a web service (or some other mechanism that allows for remote use).

My goal is to allow remote users to call the methods that are available in the module in more or less the same way they would use them if they had the module locally installed.

The module is already written and working pretty much as we'd like it to work, so I'm hoping to avoid major amounts of new coding, and I'd also like the "remote" users to be able to use the code in pretty much the same way as local users.

Any suggestions on how to proceed?

Thanks!
Ted

BTW, the following is an example of the code we can run locally now....we'd just like to somehow make it possible for a user to run this same kind of code on their own computer, and have our server do the work and send back the results.

use WordNet::QueryData; my $wn = WordNet::QueryData->new; defined $wn or die "Construction of WordNet::QueryData failed"; use WordNet::Similarity::DepthFinder; my $obj = WordNet::Similarity::DepthFinder->new ($wn); my ($err, $errString) = $obj->getError (); $err and die $errString; my $wps1 = 'car#n#4'; my $wps2 = 'oil#n#1'; my $offset1 = $wn -> offset ($wps1); my $offset2= $wn -> offset ($wps2); my @roots = $obj->getTaxonomies ($offset1, 'n'); my $taxonomy_depth = $obj->getTaxonomyDepth ($roots[0], 'n'); print "The maximum depth of the taxonomy where $wps1 is found is $tax +onomy_depth\n";