in reply to color a letter in an array

hi,

the below code will certainly help you.

@arr = (A..H,S,E,K,A,R,J..T,S,E,K,A,R,A..Z);
$text =  join "",@arr;
$text =~s#SEKAR#<font>$&</font>#g;
print $text;

Result:

ABCDEFGH<font>SEKAR</font>JKLMNOPQRST<font>SEKAR</font>ABCDEFGHIJKLMNOPQRSTUVWXYZ

bye

Don't put off till tomorrow, what you can do today.