>>>>> "da5id" == da5id < da5id%40t3rse.com">da5id
t3rse.com> writes:
da5id> but when I try to use:
da5id> s/b($keyword)b/uc $1/gi;
da5id> I'm getting a literal "uc" rather than the results of the function. Any
da5id> suggestions - is my approach a sound one?
Well, for "uc" specifically, you can use U:
s/b($keyword)b/U$1/gi;
But in general, you can use /e, as in:
s/b($keyword)b/uc $1/gie;
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
< merlyn%40stonehenge.com">merlyn
stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
.