In the text we presented CGI environment variables. Develop a program that determines whether the client is using Internet Explorer. If so, determine the version number and send that information back to the client.
What will be an ideal response?
```
1 #!perl
2 # Exercise 29.8 Solution
3 # Program to determine version number of IE
4 use CGI qw/:standard/;
5
6 print header, start_html( "Web Browser Test..." );
7
8 $browser = $ENV{HTTP_USER_AGENT};
9
10 if ( $browser =~ /MSIE (d.d)/ )
11 {
12 print "You are using Microsoft Internet Explorer version $1.";
13 }
14 else
15 {
16 print "You are not running Microsoft Internet Explorer.";
17 }
18
19 print end_html;
```
You might also like to view...
Describe the characteristics and purpose of fact and dimension tables and explain how you recognise that this data mart is based on a star schema design. Illustrate your answer using the data mart tables in Figure 32.3
What will be an ideal response?
You can edit ____________________ images without their losing image quality.
Fill in the blank(s) with the appropriate word(s).
When the mouse pointer points to an icon, which of the following displays and provides information about the icon?
A) Notification area B) Taskbar C) ScreenTip D) Shortcut menu
The IF function is a volatile function
Indicate whether the statement is true or false.