perl 5.003_07: gv.c
Ilya Zakharevich [Thu, 10 Oct 1996 02:32:22 +0000 (22:32 -0400)]
Date: Wed, 9 Oct 1996 22:32:22 -0400 (EDT)
From: Ilya Zakharevich <ilya@math.ohio-state.edu>

Better error message for overload.

gv.c

diff --git a/gv.c b/gv.c
index 69fc013..a7cee3f 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -935,7 +935,7 @@ HV* stash;
                 /* FALL THROUGH */
             case SVt_PVHV:
             case SVt_PVAV:
-             die("Not a subroutine reference in %%OVERLOAD");
+             die("Not a subroutine reference in overload table");
              return FALSE;
             case SVt_PVCV:
                 cv = (CV*)sv;