I don't think that there is any way that you could claim those to be examples of "Perl's relational operators"?

No, I don't. But if an overloaded relational operator acted as a relational operator (i.e. returned a true or a false value), wouldn't that be a relational operator?

then I don't think that you can lay the blame for that at Perl's door.

I never blamed Perl. I blamed the clever code that ignored the documentation.

Don't restrict "testing" to "creating a test". When I don't understand something I read in a piece of code, I run a few tests until I do.

The same answer applies. Readability and thus the value of the code is severely hindered if you need to run tests to understand something basic.

And what test will tell me that "it always has returned 1", the answer I'm expected to reach according to this thread?

Then perhaps you could explain what the point of the statement was?

I tend to forgot to follow through to the conclusion of my point in writing,. See replies to see where I was leading.


In reply to Re^9: Clever vs. Readable by ikegami
in thread Clever vs. Readable by Anonymous Monk

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.