Said merlyn, and then Ovid:
in reply to (Ovid) Re(2): How many bugs can *you* find
in thread How many bugs can *you* find
Actually, $section can't have regex characters as the code is written, since it simply iterates over the hard-coded items in @sections.
Saw the useless parens (and that despicable dot star!), but didn't think about $section having regex characters.
$content =~ s/<!--$section-->(.*)/<!--$section-->$contentTemp/;
## parens not needed on .*, what if $section has regex chars?
That will be five dollars, please. I take paypal, and I don't take American Express.
s aamecha.s a..a\u$&owag.print