S_Shrum has asked for the wisdom of the Perl Monks concerning the following question:
Here's my idea. I want to create a hash in a hash (which I never have dealt with before) to create a USER_AGENT table. Something like:$failed = "http://failaddress"; $passed = "http://passaddress"; $untested = "http://untestedaddress"; $unknown = "http://unknownaddress";
my %agents = ( MSIE50NT => { string => "Mozilla/ +4.0 (compatible; MSIE 5.0; Windows NT; DigExt) ", browser => "Microsoft In +ternet Explorer 5.0", developer => "Microsoft", url => "http://www.m +icrosoft.com", tested => "y", passed => "y", MSIE55NT => { string => "Mozilla/4. +0 (compatible; MSIE 5.5; Windows NT; DigExt) ", browser => "Microsoft In +ternet Explorer 5.5", developer => "Microsoft", url => "http://www.m +icrosoft.com", tested => "y", passed => "y",
...and so on, and so on. Then I can do a test to see if the browser was tested and if it passed and redirect to the approprate page.
Does this seem like a good idea? And if so, does anyone want to help me make one? Am I looking to buy a extra large bottle of Advil? Should I just put this one down with a silver bullet? Or better yet, does one already exist? TIA
======================
Sean Shrum
http://www.shrum.net
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help protecting the user - detecting and redirecting browsers the ADVANCED way...
by thpfft (Chaplain) on Mar 01, 2002 at 10:57 UTC | |
|
Re: Need help protecting the user - detecting and redirecting browsers the ADVANCED way...
by particle (Vicar) on Mar 01, 2002 at 13:24 UTC | |
by S_Shrum (Pilgrim) on Mar 02, 2002 at 04:05 UTC | |
by particle (Vicar) on Mar 02, 2002 at 12:54 UTC | |
by S_Shrum (Pilgrim) on Mar 03, 2002 at 09:39 UTC |