In the line
$template =~ s/%%DESCRIPTION%%/$description/;
you overwrite the contents of $template so that it no longer contains your %%DESCRIPTION%% tag. Therefore the the next time you try to execute this line, no substitution takes place.
--In reply to Re: Regex reset problem?
by davorg
in thread Regex reset problem?
by sz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |