in reply to Need help in bilingual code
One answer would be to use the API provided by Google for interfacing with their systems.Automating searches the way you are attempting to is prohibited by the terms and conditions of use.
In Section
Seekers of Perl Wisdom