coolmichael has asked for the wisdom of the Perl Monks concerning the following question:
is ok, but combining the two linesmy %hash; @hash{@keyarray}=@valuearray;
is a syntax error? I would have expected use strict to generate a "use of uninitialized variable" error or something, but instead, it is a syntax error.my @hash{@keyarray}=@valuearray;
Can anyone please provide some enlightenment?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Complicated Hash Construction.
by pg (Canon) on Dec 29, 2002 at 04:33 UTC | |
|
Re: Complicated Hash Construction.
by MarkM (Curate) on Dec 29, 2002 at 08:14 UTC | |
|
Re: Complicated Hash Construction.
by Trimbach (Curate) on Dec 29, 2002 at 04:26 UTC |