This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
mktables: Compile \w correctly on early Unicode versions
[perl5.git] / lib / overloading.pm
index e84708d..c762227 100644 (file)
@@ -1,20 +1,18 @@
 package overloading;
 use warnings;
 
-use Carp ();
-
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 my $HINT_NO_AMAGIC = 0x01000000; # see perl.h
 
-require 5.011000;
+require 5.010001;
 
 sub _ops_to_nums {
     require overload::numbers;
 
     map { exists $overload::numbers::names{"($_"}
        ? $overload::numbers::names{"($_"}
-       : Carp::croak("'$_' is not a valid overload")
+       : do { require Carp; Carp::croak("'$_' is not a valid overload") }
     } @_;
 }