in reply to Mojo::UserAgent Can't locate object method "say"

say is a feature available since Perl v5.10, but it's not enabled by default. Look at the documentation:

This keyword is available only when the "say" feature is enabled, or when prefixed with CORE:: ; see feature. Alternately, include a use v5.10 or later to the current scope.

Just add "use v5.10;" to your code. Or replace "use strict;" with "use v5.14;" - this enables strict by default.

- Luke

  • Comment on Re: Mojo::UserAgent Can't locate object method "say"

Replies are listed 'Best First'.
Re^2: Mojo::UserAgent Can't locate object method "say"
by yuppie (Initiate) on Nov 19, 2014 at 19:36 UTC

    I've got some output now! I can't comment it in here though, so I've used a paste service.

    http://hastebin.com/yicakehoxo.xml

    How can I successfully authenticate?

      First - read the response that you got. Especially this part:

      <span id="no-cookies" class="hidden warning">You appear to have cookie +s disabled.<br /><br /></span> <noscript><span class="warning">What.CD requires JavaScript to functio +n properly. Please enable JavaScript in your browser.</span><br /><br + /></noscript>

      Second, read the excellent documentation that comes with Mojo::UserAgent. Especially the examples under "scraping".

      Third, take a break to meditate.

      - Luke

        As I said, this may be a bit too advanced for me, because I have no idea what I'm doing.

        Documentation doesn't mention JavaScript at all.

      Not clear what's your problem introducing comments when creating a node here, but, worst case, you can prepare your post locally with your favorite text-editor. Include PM markup and comments in code blocks -- and when you're happy with the appearance, do a copy/paste to the text_entry box here.


      ++$anecdote ne $data


        Thank you. I will keep that in mind when replying. But, for now, can anyone use Mojo::UserAgent to authenticate to what.cd?