Yeah, if I changed the variable names to, say, $rat,
$whale, and $cow that would mean something to you?
Is the algorithm you're trying to prototype about rats,
whales, and cows?
To whom is ||= easier to read rather than my more
straightforward conditional?
To me, for one. It's a fairly prevalent idiom for
initializing variables, to the extent that Perl 6's
//operator is directly derived from this use
of ||.
Your post is obvious drivel designed to troll for a
couple of extra XP from people who don't read posts
thoroughly. If you were one of my engineers and this was
the only crap you could come up with during a code review
I'd fire you.
Is this is how you usually react to constructive
criticism? Petty ad hominem attacks?
--
The hell with paco, vote for Erudil!
/msg me if you downvote this node, please.
:wq
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.