From: Chris Prather Date: Fri, 21 Nov 2008 17:32:18 +0000 (+0000) Subject: remove the number check from M:M:Constructor.pm to fix failing tests in t/100/019_*.t X-Git-Tag: 0.62~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f3a93494ac1e6385d3ec56162fdac73ae79c00a9;p=gitmo%2FMoose.git remove the number check from M:M:Constructor.pm to fix failing tests in t/100/019_*.t --- diff --git a/lib/Moose/Meta/Method/Constructor.pm b/lib/Moose/Meta/Method/Constructor.pm index d7d7360..626f4ab 100644 --- a/lib/Moose/Meta/Method/Constructor.pm +++ b/lib/Moose/Meta/Method/Constructor.pm @@ -336,11 +336,8 @@ sub _generate_default_value { else { my $default = $attr->default; # make sure to quote strings ... - unless (looks_like_number($default)) { - $default = "'$default'"; - } - - return $default; + return "'$default'"; + } }