in reply to Re: s!!! vs. s///
in thread s!!! vs. s///
And: the pairs nest poperly. That means that you can use properly nested pairs inside your delimiter pair as well. The same goes for q()/qq(), to which it very similar in rules &mdqh; and that's no coincidence. So even this will work:s/foo/bar/; s!foo!bar!; s(foo)(bar); s{foo}{bar}; s[foo][bar]; s<foo><bar>; s{foo}[bar];
(provided the original does what you want. ;-)s[(^\d+[.]\s.+)]<<h1>$1</h1>>g;
For the official docs, see quote and quote-like operators in perlop.
|
|---|