in reply to finding whole words in a string
Use a regular expression with the \b assertion (which matches at word boundries) before and after the word you want to match ...
if ( $text =~ /\bindia\b/ ) { # ... }; [download]
--k.