Try $ua->request_timeout($p->_timeout) ->proxy->detect
(Lower-case) proxy is the attribute of a Mojo::UserAgent that holds a Mojo::UserAgent::Proxy object.
Mojolicious is pretty consistent about how things are named.
Mojo::UserAgent was/is a giant class filled with goodness, and things got "more complicated" in the (ongoing?) attempt to move some of the functionality out into other packages.

On 01/09/2014 08:26 AM, Astara Athena wrote:
I had some code working to open Mojo::UserAgent, and assign a user_agent, but now I need
to call a Transactor?

I think I got that, but detect Proxy has turned into :
Mojo::UserAgent::detect_proxy is DEPRECATED in favor of Mojo::UserAgent::Proxy::detect at /usr/lib/perl5/site_perl/5.16.2/Mojo/UserAgent.pm line 70.

I have tried using both
        $ua->request_timeout($p->_timeout) -> Proxy->detect;
and
        $ua->request_timeout($p->_timeout) -> Proxy::detect;

and both say not found.  So how do I call the Proxy detect?

I  get

Can't locate object method "detect" via package "Proxy" (perhaps you forgot to load "Proxy"?) at ./crawl.pl line 933

or

Can't locate object method "detect" via package "Proxy" (perhaps you forgot to load "Proxy"?) at ./crawl.pl line 935.

Why did things get so much more complicated?


Thanks...



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to