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

Can anyone suggest me the book for web-service in Perl? Also can you give me the example/company/application where Perl web-service is used.

Replies are listed 'Best First'.
Re: Webservice in Perl
by perl_lover (Chaplain) on Oct 05, 2011 at 08:53 UTC

      Or maybe not. The book is 9 years old.

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.

Re: Webservice in Perl
by chrestomanci (Priest) on Oct 05, 2011 at 08:23 UTC

    Book recommendations would depend on what technology you intend to use. For example many people use Catalyst for websites, in which case there are a number of Catalyst books to chose from.

    As for who uses perl for websites, a lot of companies do. For example if you take a look at jobs.perl.org you will see that booking.com have this open vacancy for lots of perl devs, so it would be reasonable to assume that they use perl for their website. There are plenty of others, and I have been approached by around a dozen of them, but they are more local in nature.

Re: Webservice in Perl
by duyet (Friar) on Oct 05, 2011 at 09:10 UTC
Re: Webservice in Perl
by afresh1 (Hermit) on Oct 06, 2011 at 05:01 UTC

    A newer option that I enjoy using is Mojolicious. I don't believe there are any books on it yet, but a fair amount of online documentation. A simple example web service from the Mojolicious web site looks like this:

    # RESTful web service with JSON and text representation get '/list/:offset' => sub { my $self = shift; my $numbers = [0 .. $self->param('offset')]; $self->respond_to( json => {json => $numbers}, txt => {text => join(',', @$numbers)} ); };
    l8rZ,
    --
    andrew