X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FUtil.pm;h=c63cb52ac5d9462189b3e04ee856cff43d8e4538;hb=d990f7911dfd6a36d1dcc072e7adb72bf0379349;hp=490886364153244852ab18f14849744c950827b5;hpb=b64e20073d4f273ede4e5c8e9400f889a8f9938f;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 4908863..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.49'; + 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 @@ -344,7 +336,7 @@ sub dump :method { require 'Data/Dumper.pm'; # we don't want to create its namespace my $dd = Data::Dumper->new([$self]); - $dd->Maxdepth(defined($maxdepth) ? $maxdepth : 2); + $dd->Maxdepth(defined($maxdepth) ? $maxdepth : 3); $dd->Indent(1); return $dd->Dump(); } @@ -363,7 +355,7 @@ Mouse::Util - Features, with or without their dependencies =head1 VERSION -This document describes Mouse version 0.49 +This document describes Mouse version 0.50_02 =head1 IMPLEMENTATIONS FOR