local $/ = ""; while (<>) { if (m{<binddn>cn=\Q$user\E</binddn>}) { s{<bindpass>\K.*?(?=</bindpass>)}{$new_passwd}; } print; }
In reply to Re: String Manipulation
by ikegami
in thread String replace, another question
by heeru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |