Hello Monks!, I am having trouble with the Thread::Pool and the Amazon::SQS::Simple modules, it seems they have the some subs that are the same... Here is my code:

use Amazon::SQS::Simple; use Thread::Pool; my $sqs = new Amazon::SQS::Simple($AWS_ACCESS_KEY_ID, $AWS_SECRET_ACCE +SS_KEY); my $q = $sqs->GetQueue($QUEUE_URL); my $msg; while (1) { $msg = $q->ReceiveMessage(); if ($msg != "") { #New message found, process message print $msg->MessageBody(); } else { print "No new messages.\n" } #Polling interval sleep(2); }

My problem seems to be with the RecieveMesseges function...

I get this error:

Prototype mismatch: ($;$$) vs none at (eval 1808) line 2, <VERSION> li +ne 797. Prototype mismatch: ($;$) vs none at (eval 1810) line 2, <VERSION> lin +e 824. Prototype mismatch: ($$) vs none at (eval 1812) line 2, <VERSION> line + 842. Prototype mismatch: ($) vs none at (eval 1814) line 2, <VERSION> line +880. Prototype mismatch: sub Net::SSLeay::randomize (;$$$) vs none at (eval + 1815) line 2, <VERSION> line 902. Prototype mismatch: ($$$) vs none at (eval 1824) line 2, <VERSION> lin +e 1202. Prototype mismatch: ($$$) vs none at (eval 1825) line 2, <VERSION> lin +e 1206. Prototype mismatch: ($$;**) vs none at (eval 1826) line 2, <VERSION> l +ine 1219. Could not find file for 'XML::LibXML::SAX' at /usr/local/share/perl/5. +12.4/load.pm line 214.

In reply to Prototype mismatch by caxtor

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.