I have read file into memory and I would like to replace some strings in it (i call them placeholders) with some others of my own. I would like know if there is a way to do this with a single line which will include all the needls/placeholders and all the replacements. I mean without run the following on each placeholder:
$my_text =~ s/some_placeholder/the_replace/gIn reply to Replace placeholders in text in an elegant manner by explodec14
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |