I am now not sure if I fixed the Experimental Keys error correctly or not as I am not understanding why the other stuff is breaking when fixing it.

Just FYI, my speculative (since I can't verify all these assertions) explanation of the chain of failures you're seeing is:

  1. The Experimental keys on scalar is now forbidden ... error from the
        my @result = keys $results->{$ip};
    statement is a compile time error; no code is actually run.
  2. Once the ... keys on scalar ... error is fixed, the code can compile and run and produces the Can't use an undefined value as a SCALAR reference ... run time error from the
        ${ $client->do_task(...) }
    expression, and execution stops.
  3. If the ... undefined value as a SCALAR reference ... error is fixed, the code runs on until it hits the ... malformed JSON string ... error (which may be a warning rather than a fatal error; I haven't checked).
Again, please be aware that this explanation is largely speculative.
(Update: And Fletch's suggestion that the return value of each operation be checked to be as expected and has no object/class/module error status associated with it is an excellent BP IMHO. :)


Give a man a fish:  <%-{-{-{-<


In reply to Re: Fixing Experimental Keys error caused other errors to occur by AnomalousMonk
in thread Fixing Experimental Keys error caused other errors to occur by MysticElaine

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.