[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: keys w/o parens



On Thu, 27 Jan 2000 06:16:24 MST, Tom Christiansen wrote:
>  DB<3> print scalar keys %!
>Warning: Use of "keys" without parens is ambiguous at (eval 8) line 2, <IN> line 6.
>        eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $^D = $^D | $DB::db
>_stop;
>print scalar keys%!;
>
>;' called at blib/perl5db.pl line 1262
>        DB::eval called at blib/perl5db.pl line 1156
>        DB::DB called at -e line 1
>83
>
>What's that all about?  Is this a perl5db.pl issue, or a perl one?

Looks like a bug in the lexer to me.  The warning only makes sense
for unary ops that have a default argument.  keys() isn't one of
those.


Sarathy
gsar@ActiveState.com


References to:
Tom Christiansen <tchrist@chthon.perl.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]