Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2023 - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Finding Internet Explorer version number

Posted by enquirer (enquirer), 30 November 2003
Thanks for such information on the web.

I actually want to write a perl program which will just display the IE version of the machine on which I will execute this perl program.

Posted by admin (Graham Ellis), 30 November 2003
What are you trying to do?  IE is a client program (a browser), but Perl usually lives on the server for running CGI scripts.   In those, you'll find an environment variable $ENV{HTTP_USER_AGENT} which contains the information you're looking for.  Here's an example of the string in the variable:
     Mozilla/4.0 (compatible; MSIE 5.22; Mac_PowerPC)

Which you could tackle with a regular expression such as
to get the version number into the variable $1.

If you are truely looking for the version(s) or IE that are present on a system on which you are running a Perl program, yes, the registry will contain many settings that might be useful clues;  not something I've researched in depth, but if you use the programs that we have around and on our web site / in our courses, they will give you a framework from which you can search and experimentally find what the information you need is.

Posted by Custard (Custard), 30 November 2003
or if you're using $query->user_agent(); does the same trick, but using CGI which is generally recommended.

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2023: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho