X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FUtil.pm;h=c63cb52ac5d9462189b3e04ee856cff43d8e4538;hb=4aaed9e5cc435a2085e46f4c98a3abc233ecacaf;hp=f2d4457dd177129deae3c155498b1ceb2ed69717;hpb=e9148d131f7c3d6a1e3fc9e7c491f80fb5dde90b;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index f2d4457..c63cb52 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -38,7 +38,7 @@ BEGIN{ # Because Mouse::Util is loaded first in all the Mouse sub-modules, # XS loader is placed here, not in Mouse.pm. - our $VERSION = '0.50'; + our $VERSION = '0.50_02'; my $xs = !(exists $INC{'Mouse/PurePerl.pm'} || $ENV{MOUSE_PUREPERL}); @@ -311,15 +311,7 @@ sub english_list { } sub quoted_english_list { - return qq{'$_[0]'} if @_ == 1; - - my @items = sort @_; - - return qq{'$items[0]' and '$items[1]'} if @items == 2; - - my $tail = pop @items; - - return join q{, }, (map{ qq{'$_'} } @items), qq{and '$tail'}; + return english_list(map { qq{'$_'} } @_); } # common utilities @@ -363,7 +355,7 @@ Mouse::Util - Features, with or without their dependencies =head1 VERSION -This document describes Mouse version 0.50 +This document describes Mouse version 0.50_02 =head1 IMPLEMENTATIONS FOR