Are you sure keys is an lvalue function?
I get no complaint in scalar assignment, but no indication it worked, either. List assignment gives,
$ perl -Mwarnings -Mstrict -e'keys( my %foo) = qw/foo bar baz/;print %foo' Useless use of a constant in void context at -e line 1. Useless use of a constant in void context at -e line 1. Argument "baz" isn't numeric in scalar assignment at -e line 1. $
After Compline,
Zaxo
In reply to Re^2: Hash optimization in Perl?
by Zaxo
in thread Hash optimization in Perl?
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |