i want to create a lexical parser but i have a little confusion about the language means which one is best for creating such type of application. i have selected two language Scala and Perl but till now i am confuse that which is best. can any one give me specific reason to choose correct language.
There is ofcourse not one "correct" or "best" language. You can do parsing in both those languages.
Scala has stuff for parsing in its standard library. I haven't used it though, so I can't tell you much on how it works or if it's easy to use. I don't know much about Perl but as far as I know it's a good language for string processing.