note
Anonymous Monk
<P><I>One lamented aspect of Perl is that regexes get really hard to read. .... </i>
<P>If you learn to regex, they're really easy to read :)
<P><I>why not use a sigil ...</i>
<P>Because its not on the standard keyboard!
<P>Also, its a [http://en.wikipedia.org/wiki/Delimiter|delimiter] not a [http://en.wikipedia.org/wiki/Sigil_%28computer_programming%29|sigil]
<P>Which is why I prefer to use @ for quoting like <C>s@@@</C> </sarcasm>
<P>But seriously, this is exactly why i prefer \ or «
<C>$ perl -MO=Deparse -e " s\\\g "
s///g;
-e syntax OK
$ perl -MO=Deparse -e " s«««g "
s///g;
-e syntax OK</C>
or even
</sarcasm>
<P>But seriously, between balanced delimiters like<C>
perl -MO=Deparse -e " s {}//g "
perl -MO=Deparse -e " s {}\\g "
perl -MO=Deparse -e " s {}vvg "
perl -MO=Deparse -e " s {}()g "
perl -MO=Deparse -e " s {}[]g "
perl -MO=Deparse -e " s {}<>g "
perl -MO=Deparse -e " s<><>g "</C>
<P>I stick to keyboard characters
<pre>s///x
s===x
s,,,x
s!!!x
s~~~x
s>>>x
s}}}x</pre>
and the special case s'''x
<P>The x means magic
926323
926323
17