diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-04-25 14:53:57 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-04-25 14:53:57 +0000 |
commit | 6b14e5b9025a1b2de53ba9158f044abe6bf49180 (patch) | |
tree | f659f6af382dda39d611a161397712a32965792c /lib/overload.pm | |
parent | 05a4b9b1cf732bd593a66695e9160c88fe43217c (diff) | |
download | perl-6b14e5b9025a1b2de53ba9158f044abe6bf49180.tar.gz |
Move the require at the top of the file.
Else, Test::More has test failures.
p4raw-id: //depot/perl@31074
Diffstat (limited to 'lib/overload.pm')
-rw-r--r-- | lib/overload.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/overload.pm b/lib/overload.pm index 5faaad33ab..db201fa78f 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; } |