chromatic> I suppose I'm asking "What suggested to you that that syntax would do what you want?"
The process went something like this.
  1. Tried a bunch of things that failed.
  2. What else can I try?
  3. Hmm, I'm returning "x" and "y" from my subroutine, why not see what happens with "x" and "y" on the right side of the expression.
  4. Tried a few more things to find some common working scenarios. Didn't find any.
  5. It works but it doesn't look right, can't seem to find a direct example of subroutine testing.
    chromatic> "What did you want to accomplish?"
    Not a whole of deep thought, just wanted to compare the return values of my subroutine.
    chromatic> and you've done something here I've never seen before. That's fascinating to me.
    Yes, probably in a WTF kind of way. I'm saying this to be humorous with a smile on my face.

    In reply to Re^6: Checking two scalars in Test::More $expected. It works, but is it proper? by gctaylor1
    in thread Checking two scalars in Test::More $expected. It works, but is it proper? by gctaylor1

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



  6. Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  7. Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  8. Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  9. Please read these before you post! —
  10. 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
  11. 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;
  12. Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  13. See Writeup Formatting Tips and other pages linked from there for more info.