View Single Post
  #2 (permalink)  
Old 06-10-2007, 05:22 PM
Tapan
Posts: n/a
Use regular expressions
$word =~ s/word1/word2/;
or
$word =~ s/\n/\<BR\>/g;

g: global flag
s: substitute

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!