X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FUtil.pm;h=0359e516997dc36fae14170e6b277f83a3b21ff8;hp=19876a17f4068ff4eb0d1e094d21ab7d3def6eea;hb=53f661ad85292817689ae0a2ac195019764765f0;hpb=45f22b92d1140ad101f7c3112bc565890ea5a1ad diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 19876a1..0359e51 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'; 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 =head1 IMPLEMENTATIONS FOR