The Monastery's moral equivalent of an "edit button" involves a couple steps (but ONLY for a registered Monk -- AM's need not apply):
- open the node you wish to edit (so it's the top item in the browser window or tab)
- scroll down below the formatted version of what you originally entered to see --
...VOILA!
a text-entry box (just like the one where you entered your original)
- Edit -- DO NOT DELETE WHAT YOU'VE POSTED -- simply use <strike>...</strike> around anything you wish to disavow (code: add a comment in the erroneously posted code or create a new code block and put the strike tags outside the original code tags). Be sure to add a note -- something like "<p><b>UPDATE: </b> (tell us here what you changed and, if relevant, why).</p>"
- Use the "update" button but only after carefully reviewing the text-entry box because there is NO preview. I.e., if you screw it up, you'll have to edit again (albeit in the same window or tab)
When done, you may have something like this:
Initial narrative here. Blah, blah, blah, etc. and so forth....
for $_(@foobar) {
print $foo
}
UPDATE: Copy/paste error in OP (wrong var in first line; no semi-colon in Ln 2); correct code below:
<c> for my $foo(@foobar) {
print $foo;
}
But, again, ya' gotta' register to make this work.
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.