http://www.perlmonks.org?node_id=76842


in reply to (Ovid) Re(2): How many bugs can *you* find
in thread How many bugs can *you* find

Said merlyn, and then Ovid:
$content =~ s/<!--$section-->(.*)/<!--$section-->$contentTemp/; ## parens not needed on .*, what if $section has regex chars?
Saw the useless parens (and that despicable dot star!), but didn't think about $section having regex characters.
Actually, $section can't have regex characters as the code is written, since it simply iterates over the hard-coded items in @sections.

That will be five dollars, please. I take paypal, and I don't take American Express.

   MeowChow                                   
               s aamecha.s a..a\u$&owag.print