The thing I like about "0 but true" is that it is
self-explanatory; with any of the others, I'd feel
obligated to insert a comment explaining why I
was returning zero in that particular way, so that
some hapless soul a few years later doesn't pull
out hair figuring out why my code is so weird; with
"0 but true" I expect any decent Perl programmer
to be able to figure it out, because the jist of
the reason is contained in the value; assuming the
reader understands context, it'll just click. (And
if the reader doesn't understand context, he won't
be able to maintain my code anyway; I make frequent
use of context and consider it a major concept of
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||