in reply to Re: Having scalars handled as regexs inside a substitution
in thread Having scalars handled as regexs inside a substitution
sub findandreplace { my ($string, $find, $replace) = @_; eval '$string' . " =~ s/$find/$replace/"; $string; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: Having scalars handled as regexs inside a substitution
by ZZamboni (Curate) on May 21, 2000 at 00:01 UTC |