Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: italicize an email message

by feanor_269 (Beadle)
on Apr 09, 2003 at 19:27 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://249370]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found