So can it work? I really suck at perl took me 3-1/2 hrs just to stop the formail script from sending every 0.00 in my reservation form to the mail and html responses.
Blah blah blah, I digress....so can it?...any takers???
If it makes a dif' I have a good relationship with my ISP
You can get browser and os type and version through the HTTP_USER_AGENT environment variable. It could appear as the following
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
You can use the HTTP::Headers::UserAgent module to parse this information.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
If you are using Perl then you might find it easier to use the user_agent() function/method of the ubiquitous CGI.pm module
This is actually a rather useless area of CGI.pm. Loading a module and calling a method seems rather silly when the same value is already easily accesible through a preloaded variable.
Likewise [quoteIf you give this method a single argument, it will attempt to pattern match on it, allowing you to do something like $query->user_agent(netscape);[/quote] is also pointless as it replaces only a single statement that must again be loaded and executed from a module.