As the majority of internet users probably use Internet Explorer on Windows computers, you could try client-side JScript to determine the language:
thelanguage=navigator.userLanguage as described
here. (Note that this will not work for other browsers and has nothing to do with Perl.)