in reply to dodgy sub
Besides, if there are strange chars in $find ( \, +, *, (, [ or the like), better write:$string = str_replace("Hello", "Hi", "Hello My Name Is Elfyn");
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
|
|---|