Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: italicize an email message

by feanor_269 (Beadle)
on Apr 09, 2003 at 19:27 UTC ( #249370=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://249370]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2020-11-29 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?