summaryrefslogtreecommitdiff
path: root/opnames.h
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2022-06-06 14:52:15 +1000
committerTony Cook <tony@develop-help.com>2022-07-04 11:41:50 +1000
commitc5327cb77526e4e4c7bb83e24be20ac48e85b1fa (patch)
treef77aa69c48eb301eba93857f7aa4948fd59bdfcc /opnames.h
parentff49def3c5bf9297dd256667d4cc31f08a628c25 (diff)
downloadperl-c5327cb77526e4e4c7bb83e24be20ac48e85b1fa.tar.gz
fix no bareword_filehandles for method calls as first argument of LSTOPs
The original code in toke.c tried to detect a bareword as a file handle during tokenization rather than once the expression following the LSTOP has been parsed. I've moved the checking for a bareword filehandle to the ck functions for each OP in most cases, which covers most OPs except for LSTOPs like print. To handle that I've added a check in newGVREF(). This means in most cases that the error is produced just as the bareword would normally be wrapped in an OP_RV2GV. The special case for that is readline(), which does it's own rv2gv() at runtime, but it does have a ck function which can check for the bareword handle.
Diffstat (limited to 'opnames.h')
0 files changed, 0 insertions, 0 deletions