vroom has asked for the wisdom of the Perl Monks concerning the following question:
Anyone know how to make this voodoo happen?sub findandreplace{ my($string,$find,$replace); $string=~s/$find/$replace/g; $string; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Having scalars handled as regexs inside a substitution
by chromatic (Archbishop) on May 20, 2000 at 06:01 UTC | |
|
Re: Having scalars handled as regexs inside a substitution
by ZZamboni (Curate) on May 20, 2000 at 19:13 UTC | |
by DrManhattan (Chaplain) on May 20, 2000 at 19:48 UTC | |
by ZZamboni (Curate) on May 21, 2000 at 00:01 UTC |