From: Daisuke Maki Date: Wed, 3 Dec 2008 08:35:05 +0000 (+0000) Subject: don't attempt to require Scalar::Util if we're going this far trying to optimize X-Git-Tag: 0.19~136^2~49 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9524350bfae400fd93672045e672a65f4ab28a87;p=gitmo%2FMouse.git don't attempt to require Scalar::Util if we're going this far trying to optimize --- diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 9d87d5a..e4b8b07 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -175,7 +175,7 @@ BEGIN { # weaken # other functions need to be loaded from our respective sources - if (defined &Scalar::Util::openhandle || eval { require Scalar::Util; 1 }) { + if (defined &Scalar::Util::openhandle) { *openhandle = \&Scalar::Util::openhandle; } else { # XXX - room for improvement