
abcindiaxyz
New User
Jan 20, 2008, 10:48 PM
Post #1 of 2
(2019 views)
|
|
need perl matching - very urgent
|
Can't Post
|
|
Hi All, I have some Languages with braces in my table Note: It has all the languages the below are the examples of the languages that has braces Ex: Altaic [other],Baltic [other],Bantu (other),Batak (Indonesia),Berber (other) which comes from database, if user selects any of these Languages the match case mathes the value with all the Languages in database and hilights the selected one as "selected" in list box. the code which i'm using is @olanglist[$i] is the array of all languages @otherlang is the selected language $i = 0; while (@olanglist[$i]) { foreach(@otherlang){ $olang = "<option>$_"; $_ = $olang; if (m/@olanglist[$i]/){ @olanglist[$i] =~ s/\<option\>/<option selected>/o; } } $i++; } but not the match case is not matching the values that has Braces ,rest all are fine , can any one pelse suggest me how to do it ?
|