From: Rafael Garcia-Suarez Date: Wed, 25 Apr 2007 14:53:57 +0000 (+0000) Subject: Move the require at the top of the file. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6b14e5b9025a1b2de53ba9158f044abe6bf49180;p=p5sagit%2Fp5-mst-13.2.git Move the require at the top of the file. Else, Test::More has test failures. p4raw-id: //depot/perl@31074 --- diff --git a/lib/overload.pm b/lib/overload.pm index 5faaad3..db201fa 100644 --- a/lib/overload.pm +++ b/lib/overload.pm @@ -2,6 +2,8 @@ package overload; our $VERSION = '1.06'; +require Scalar::Util; + sub nil {} sub OVERLOAD { @@ -73,7 +75,6 @@ sub OverloadedStringify { sub Method { my $package = shift; if(ref $package) { - require Scalar::Util; $package = Scalar::Util::blessed($package); return undef if !defined $package; }