Before one of the answers above I would not have known that
(3 and 4) were in list context. I didn't really
think about scalar or list context as I was trying to
understand how the test was working.
I don't think I had enough understanding to intend much.
Since it was my first test and all previous were failing I was trying to get anything to work
and then try to understand after that why it worked. What I thought was
happening was that Test::Simple was looking at each
value and comparing it to the return values but I couldn't
really see how it was doing that.
I'm not sure I've answered your questions yet. I wonder if
you're trying to teach me something and I haven't gotten it
yet or my use was so out of whack your incredulous?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.