What confuses a lot of people is that when the replacement is a simple expression like $that, the following are equivalent:
However, note how this changes when the replacement varies just a little:s/$this/$that/; s/$this/$that/e;
# these are are equivalent: s/$this/some text/; s/$this/"some text"/e; # and so are these: s/$this/$that was close/; s/$this/$that." was close"/e;
In reply to Re: /e in regexes
by pc88mxer
in thread /e in regexes
by waldner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |