|Subject:||version('raw') vs original_version()|
For some browsers, the module doesn't successfully parse the version string, and calling version() will return the wrong thing. Sometimes you need to call $ua->version('raw') to get the raw version string, and sometimes original_version() is the right thing. For example, with Chrome, UA string of 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.54 Safari/535.2' version = 15.000874054 raw version = 15.0.874.54 original version = with opera mini, UA string of Opera/9.80 (Series 60; Opera Mini/6.1.25759/25.872; U; en) Presto/2.5.25 Version/10.54 version = 10.540 raw version = 10.54 original version = 6.1.25759/25.872 Ok, so the UA string is a mess, but apparently the correct version is "6.1.25759", which none of the 3 options returns. Multiple bugs here :-) (1) the 'raw' argument to version() isn't documented (found it looking at the code). (2) difference between version(), version('raw') and original_version() not documented. (3) not clear what the interpretation of each should be anyway.