yappo/p5-HTTP-AcceptLanguage — pull request #2 by tokuhirom (2013-10-17 07:43:39+00:00)
Title: Change of default priority of match method. #1

It is incompatible change.

If language quality is the same, the order of the input list takes from
Accept-Language header.

Quality is not set on android phone.
Sequence order of the header are used for quality.

my $accept_language = HTTP::AcceptLanguage->new('en, da');
$accept_language->match(qw/ da en /); # -> en
$accept_language->match(qw/ en da /); # -> en

It is compatible mode.

$HTTP::AcceptLanguage::MATCH_PRIORITY_0_01_STYLE = 1;
my $accept_language = HTTP::AcceptLanguage->new('en, da');
$accept_language->match(qw/ da en /); # -> da
$accept_language->match(qw/ en da /); # -> en