As indicated by moritz, this is a little too vague to provide a definitive answer. The following may help.
Perl Best Practices would recommend:
$line =~ s/.../.../gmsx;
Also, take a look at perlre.
-- Ken
In reply to Re: String replace, another question
by kcott
in thread String replace, another question
by heeru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |