diff options
author | Ilya Zakharevich <ilya@math.berkeley.edu> | 1998-01-29 12:04:28 -0500 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1998-02-06 15:55:34 +0000 |
commit | b6c543e345c32071a6c3c124ee19c0eb9bb3df41 (patch) | |
tree | c27f75f78aa13078d259dd852bd0c54482a2f527 /toke.c | |
parent | 8c52afecd5252bed5ed8df3a63a6cd9affde4ab4 (diff) | |
download | perl-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.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); |