Indeed /e executes in the replacement part of the s/// operator. Do you happen to know that
site.type=production;
is valid Perl (5, that is!) code? How so?!?
Incidentally you may use
s/(?<=site.type=)standby/production/gi
instead.
In reply to Re: substitution using perl -pi -e
by blazar
in thread substitution using perl -pi -e
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |