summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>1998-01-29 12:04:28 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-06 15:55:34 +0000
commitb6c543e345c32071a6c3c124ee19c0eb9bb3df41 (patch)
treec27f75f78aa13078d259dd852bd0c54482a2f527 /toke.c
parent8c52afecd5252bed5ed8df3a63a6cd9affde4ab4 (diff)
downloadperl-b6c543e345c32071a6c3c124ee19c0eb9bb3df41.tar.gz
5.004_56: patch for `use Fatal' again
p4raw-id: //depot/perl@467
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index f2a60e1c98..23174221d0 100644
--- a/toke.c
+++ b/toke.c
@@ -1042,9 +1042,18 @@ intuit_method(char *start, GV *gv)
GV* indirgv;
if (gv) {
+ CV *cv;
if (GvIO(gv))
return 0;
- if (!GvCVu(gv))
+ if ((cv = GvCVu(gv))) {
+ char *proto = SvPVX(cv);
+ if (proto) {
+ if (*proto == ';')
+ proto++;
+ if (*proto == '*')
+ return 0;
+ }
+ } else
gv = 0;
}
s = scan_word(s, tmpbuf, sizeof tmpbuf, TRUE, &len);