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.
MeowChow s aamecha.s a..a\u$&owag.print
In reply to Re: (Ovid) Re(2): How many bugs can *you* find
by MeowChow
in thread How many bugs can *you* find
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |