diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-03-09 02:50:43 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-03-09 02:50:43 +0000 |
commit | dce40276d967c484e2b36928ff656a2f5ac3647a (patch) | |
tree | 5a7a4331d83df376ce10fbc65d9dba6ab3f2972f /toke.c | |
parent | 1c17f625523fe31dcefb5b6c09a3c176ed0875fc (diff) | |
download | perl-dce40276d967c484e2b36928ff656a2f5ac3647a.tar.gz |
use yyerror() instead of croak() so that compile-time failures in
my(LIST) don't confuse globals with lexicals
p4raw-id: //depot/perl@3097
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1638,7 +1638,7 @@ int yylex(PERL_YYLEX_PARAM_DECL) */ if (PL_in_my) { if (strchr(PL_tokenbuf,':')) - croak(PL_no_myglob,PL_tokenbuf); + yyerror(form(PL_no_myglob,PL_tokenbuf)); yylval.opval = newOP(OP_PADANY, 0); yylval.opval->op_targ = pad_allocmy(PL_tokenbuf); |