DanielSpaniel has asked for the wisdom of the Perl Monks concerning the following question:
I've been playing around trying to get a very simple crawler working, using the module Mojolicious and Mojo::UserAgent. However, I keep getting an error message which I don't know how to resolve, per below:
Mojo::Reactor::Poll: I/O watcher failed: Can't locate object method "is_status_class" via package "Mojo::Message::Response" at crawler.pl line 57.The code is identical to several examples I've seen, and I've tried the script with "use Mojolicious;" and also "use Mojo::UserAgent", both of which work, but each of which fails with the same error. I've only just installed the modules, so I assume I have the most recent versions. I've also re-installed everything too.
I'm running this on a CentOS machine, with Perl v5.16.3.
Any assistance would be much appreciated. I've scoured the web, but I've yet to find any fix.
Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mojolicious Problem
by marto (Cardinal) on Nov 20, 2017 at 17:51 UTC | |
by DanielSpaniel (Scribe) on Nov 20, 2017 at 18:01 UTC | |
by marto (Cardinal) on Nov 22, 2017 at 10:41 UTC |