http://www.perlmonks.org?node_id=249370


in reply to Re: italicize an email message
in thread italicize an email message

perhaps  $_ =~ /$word/<em>$word</em>/; should be   $_ =~ s/$word/<em>$word</em>/;

feanor_269

Replies are listed 'Best First'.
Re: Re: Re: italicize an email message
by Jenda (Abbot) on Apr 09, 2003 at 22:39 UTC

    Well ... it should be $_ =~ s/\Q$word\E/<em>$word</em>/g;

    Jenda
    Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
       -- Rick Osborne

    Edit by castaway: Closed small tag in signature