I prefer my delimiters to be tall and skinny, just like
/.
| is tall and skinny, but that
leads often to a clash with the special regex character.
So, I usually use
!, which only gives a problem
if you want to use
(?!) or
(?<!),
but they are uncommon enough for
! to be useful.
And I often use the balanced delimiters, the four sets of
braces (
{ } being my favourites).
!
I seldom use for matching, only for substitutions, or any of
the
q* operators, but I prefer
/
or
{ } for them.
Only in one liners, vi or IRC, I sometimes use a period when
doing substitution, but never in code that's stored in a file.
I don't like to use #, @ or similar
characters as delimiters. I know they are popular, but they
are too black to my taste, and draw the eye away from the
important regex towards the unimportant delimiters.
Abigail
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.