Hi All, I have a tring which contains 60 to 80 keywords, I need to know what position a keyword is in. I need an efficint way to extra position of key words, here is how I am currently finding positions,
$string="type,model,color,date"; # this is how I am currently getting position, which is nto very efficiant @keys=split ",",$string; foreach( @keys ){ $position++; last if m/model/ig; }