in reply to Re: Hash optimization in Perl?
in thread Hash optimization in Perl?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hash optimization in Perl?
by Anonymous Monk on May 02, 2007 at 07:33 UTC |