sub findandreplace { my ($string, $find, $replace)=@_; eval { $string =~ s/$find/$replace/; } die "$@" if $@; $string; }
--ZZamboni
In reply to Re: Having scalars handled as regexs inside a substitution
by ZZamboni
in thread Having scalars handled as regexs inside a substitution
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |