We could bitch that we don't do "C for loops"
Or, we could consider ourselves Perl programmers, and acknowledge that "there's more than one way of doing it".
But what if they wanted the iteration number?
It's really bad to answers questions by assuming hidden requirements. Not answering is superior in that case. If a requirement isn't in the question, don't assume it is.
each for arrays
On p5p, the current feeling about that is "we wish we never implemented this".
Do we have a common guide to follow when responding to questions here on PM?
guide? Buhahahah. It's hard to get consensus even if you were to pick no more than two people from here at random. Other than guides people may have for themselves, there's no guide. Let alone a common one.
This question goes much deeper than coding questions
Actually, I find your questions shallow. Particular the question whether there's a guide: to me it says you're afraid of being yourself, and prefer to follow what someone else cooked up for you. Instead of meekly asking how you should behave, why not tell us how you answer, motivate it, and be prepared for criticism? That maybe useful, as it can help others decide (or change) how to respond.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
Outside of code tags, you may need to use entities for some characters:
- 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.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||