in reply to Regex reset problem?
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.
--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Regex reset problem?
by sz (Friar) on Jul 07, 2000 at 18:37 UTC |