Fellow Monks lend me your ears!

I was browsing the CPAN modules available and came across one that I have missed until now. VoiceXML::Server

I did a quick read of the docs and decided to try the example.

#!/usr/bin/perl -w use diagnostics; use strict; require VoiceXML::Server; my $server = VoiceXML::Server->new(); # it says not use avoidfirewall if you can help it, so I removed that +part $server->Audio("Pick a number between 1 and 99."); my $num = int(rand(99)) + 1; while (1) { my $guess = $server->Listen(grammar => "NATURAL_NUMBER_THRU_99"); if ($guess < $num) { $server->Audio("No, $guess is too low. Try again."); } elsif ($guess > $num) { $server->Audio("No, $guess is too high. Try again."); } else { $server->Audio("That's right, my number was $num. OK, " . "let's play again. I'm thinking of a " . "different number."); $num = int(rand(99)) + 1; } }
I have tried it with two different webservers with two different results. On this win98 machine running the most recent ActiveState Perl and using the Xitami webserver, it gives a 502 Service temporarily overloaded. On my hosted site, I get "Premature end of script headers".

The debug option does not seem to do anything on either.

Has anyone had any luck with this thing?


In reply to VoiceXML::Server problems by Mr. Muskrat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.