summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-10-03 05:19:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-10-03 05:19:56 +0000
commit78ca652eaf12f3ab6d7714883eec614d257f666a (patch)
tree6bbe81a261abeb34caf5651b686d45f2eb395c5f /perly.y
parent39e216bc90d449c29ecedac1a04e0b8d579b806c (diff)
downloadperl-78ca652eaf12f3ab6d7714883eec614d257f666a.tar.gz
make C<use> recognize C<require> overrides; allow C<do EXPR> to be
overridden p4raw-id: //depot/perl@1923
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index e016cf431d..47e632423a 100644
--- a/perly.y
+++ b/perly.y
@@ -512,7 +512,7 @@ term : term ASSIGNOP term
{ $$ = newUNOP(OP_ENTERSUB, OPf_STACKED,
append_elem(OP_LIST, $3, scalar($2))); }
| DO term %prec UNIOP
- { $$ = newUNOP(OP_DOFILE, 0, scalar($2)); }
+ { $$ = dofile($2); }
| DO block %prec '('
{ $$ = newUNOP(OP_NULL, OPf_SPECIAL, scope($2)); }
| DO WORD '(' ')'