Other replies to your message focus on dealing with stale CPAN modules, but I'd like to pick up on the issue of browser detection:

Whereas most modules are updated when new functionality is required, a browser detection module would ideally be updated every time a new browser, browser version, OS or OS version is released.

To an extent, the WWW::Search modules share this problem, as does all screen scraping code. Such code tends to deal with one particular site, rather than a collection of browsers and operating systems, though.

Microsoft's Active Server Pages (ASP) includes a browser detection facility where the code is detached from browser matching rules which are stored in a browscap.ini file. There are many third-party browscap.ini files available. This method isn't as flexible as it could be, and it's not extensible, but it's an interesting idea.

Perhaps the ideal browser detection code would allow me to periodically pull in browser definition files from a collection of trusted sources who describe the features of each product. Some users configure their browsers to disable certain features, so if you want to build up an accurate idea of the technologies your users can access, you should probably do some server log analysis too. This is likely to be excessive for most of us, though!

I hope it helps you figure out how to do it properly. It would be good to see a powerful browser detection system for Perl!


In reply to Browser Detection (Re: When Modules Go Stale...) by tomhukins
in thread When Modules Go Stale... by Cody Pendant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.