yuppie has asked for the wisdom of the Perl Monks concerning the following question:
And here is the error it gives me: Uncaught exception from user code: Can't locate object method "say" via package "Mojo::UserAgent" at freeleech.pl line 15.#!/usr/bin/env perl -w use strict; use warnings; use diagnostics; use Mojo::UserAgent; my $ua = Mojo::UserAgent->new; my $tx = $ua->get('what.cd'); my $cookie_jar = $ua->cookie_jar; $ua = $ua->cookie_jar(Mojo::UserAgent::CookieJar->new); say $ua->get('https://yuppie:password@what.cd/login.php')->res->body;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mojo::UserAgent Can't locate object method "say"
by Loops (Curate) on Nov 19, 2014 at 19:16 UTC | |
|
Re: Mojo::UserAgent Can't locate object method "say"
by blindluke (Hermit) on Nov 19, 2014 at 19:19 UTC | |
by yuppie (Initiate) on Nov 19, 2014 at 19:36 UTC | |
by blindluke (Hermit) on Nov 19, 2014 at 19:56 UTC | |
by yuppie (Initiate) on Nov 19, 2014 at 21:30 UTC | |
by ww (Archbishop) on Nov 19, 2014 at 22:07 UTC | |
by yuppie (Initiate) on Nov 19, 2014 at 22:27 UTC | |
by Anonymous Monk on Nov 20, 2014 at 00:37 UTC |