<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001018" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001018</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/browser-detection-perl#comment-1004330</link>
    <description> &lt;p&gt;Here is what $ENV{&#039;HTTP_USER_AGENT&#039;}  generally looks like if the browser is IE, or Netscape:&lt;/p&gt;
&lt;p&gt;IE:  Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)&lt;/p&gt;
&lt;p&gt;Netscape:  Mozilla/4.04 [en] (Win95; U)&lt;/p&gt;
&lt;p&gt;Not sure if this is right, but you could try somthing like:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
if($ENV{&#039;HTTP_USER_AGENT&#039;} =~ m/compatible; MSIE (.+?);.*/sogi)
{
	$version = $1;  #browser was IE
}
if($ENV{&#039;HTTP_USER_AGENT&#039;} =~ m/Mozilla\/(.+?)\s.*/sogi)
{
	$version = &quot;$1&quot;; #browser was Netscape	
}
[/code]

This will get the version for Netscape and Explorer, and put it into $version.

------------------
&lt;strong&gt;Termites eat through wood two times faster when listening to rock music.&lt;/strong&gt;

[This message has been edited by robp (edited 13 March 2000).] &lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Mon, 13 Mar 2000 19:20:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004330 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/browser-detection-perl#comment-1004329</link>
    <description> &lt;p&gt;hmm, that&#039;s the only way i know.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;strong&gt;Thumbs up or down ratings of the best and worst ways to make $$$ on the net. &lt;a href=&quot;http://www.birminghamnet.com/search-engines/resources/webmaster_tools/&quot; class=&quot;bb-url&quot;&gt;CLICK 4 CASH!&lt;/a&gt; from Affiliate Programs and Ad Networks&lt;/strong&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 Mar 2000 18:16:00 +0000</pubDate>
 <dc:creator>fairhousing</dc:creator>
 <guid isPermaLink="false">comment 1004329 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
