Help for this page

Select Code to Download


  1. or download this
    use strictures;
    use CGI ":standard";
    use HTML::Entities;
    ...
        end_html;
    
    # Test on command line: ./rpc.pl 'args=to;the=call'
    
  2. or download this
    use strictures;
    use Plack::Request;
    # Called https://mysite/not-the-cgi-bin/rpc.pl?args=to;the=call
    ...
    # Command line: plackup rpc.pl
    # HTTP::Server::PSGI: Accepting connections at http://0:5000/
    #                           -> port 5000 on localhost ^^^