caxtor has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Prototype mismatch
by JavaFan (Canon) on Apr 12, 2012 at 18:18 UTC | |
by caxtor (Initiate) on Apr 12, 2012 at 18:26 UTC | |
by JavaFan (Canon) on Apr 12, 2012 at 18:42 UTC | |
by caxtor (Initiate) on Apr 12, 2012 at 19:51 UTC | |
|
Re: Prototype mismatch
by Khen1950fx (Canon) on Apr 12, 2012 at 22:49 UTC | |
by chromatic (Archbishop) on Apr 12, 2012 at 23:05 UTC | |
by Khen1950fx (Canon) on Apr 13, 2012 at 01:50 UTC | |
by chromatic (Archbishop) on Apr 13, 2012 at 17:30 UTC | |
by Khen1950fx (Canon) on Apr 13, 2012 at 20:36 UTC | |
by caxtor (Initiate) on Apr 13, 2012 at 21:15 UTC |