X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FUtil.pm;h=c63cb52ac5d9462189b3e04ee856cff43d8e4538;hb=4aaed9e5cc435a2085e46f4c98a3abc233ecacaf;hp=19876a17f4068ff4eb0d1e094d21ab7d3def6eea;hpb=45f22b92d1140ad101f7c3112bc565890ea5a1ad;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 19876a1..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}); @@ -310,6 +310,10 @@ sub english_list { return join q{, }, @items, "and $tail"; } +sub quoted_english_list { + return english_list(map { qq{'$_'} } @_); +} + # common utilities sub not_supported{ @@ -332,14 +336,15 @@ 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(); } # general does() method -sub does :method; -*does = \&does_role; # alias +sub does :method { + goto &does_role; +} 1; __END__ @@ -350,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