UPDATE, I reaped this against social norm. I had mentioned that I like extended regexes (/x) so that I can comment them. E.g.
m/^A.TL5
([EF]) # my match here
00/x
I like this because later the comment will help me to remember what I was doing, and in general regexes can be hard to read. I mistakenly extended this to to s///.
s/^A.TL5
([EF]) # my match here
00
/
NEW
\s+
{$1} # replae here
/x
Toolic pointed out that extended regexes in s/// only work on the matching part, not the replacing part. So this, I hope, is the legal one:
s/^A.TL5
([EF]) # my match here
00
/NEW {$1}/x
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.