I encountered two problems: missing dependencies and proper use of load.pm. I fixed the dependencies with this:
#!/usr/bin/perl use strict; use warnings; use CPAN; CPAN::Shell->install(qw( load Thread::Serialize Thread::Tie Thread::Conveyor Thread::Conveyor::Monitored Thread::Queue XML::NamespaceSupport XML::SAX::Base XML::SAX XML::SAX::Expat XML::LibXML::SAX XML::Simple WWW::RobotRules HTML::Tagset HTML::Parser HTTP::Date Encode::Locale LWP::UserAgent LWP::MediaTypes HTTP::Headers HTTP::Headers::Util HTTP::Status HTTP::Daemon Net::HTTP URI HTTP::Negotiate File::Listing));
This fixed the ptoyotype mismatch in load.pm:
#!/usr/bin/perl BEGIN { eval { do { use strict; use warnings; } }; } use load qw(AutoLoader now); use Thread::Pool; use Amazon::SQS::Simple; my $queue_url = 'https://queue.amazon.com'; my $access_key = q{id}; my $secret_key = q{key}; my $sqs = new Amazon::SQS::Simple($access_key, $secret_key); my $q = $sqs->GetQueue($queue_url); my $msg; while (1) { $msg = $q->ReceiveMessage(); if ($msg != "") { print $msg->MessageBody(); } else { print "No new messages.\n" } sleep(2); }
The rest is up to you.

In reply to Re: Prototype mismatch by Khen1950fx
in thread 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.