in reply to Syntax error for the following ???
You can't do
my @Aseen{...} = ...;
which is what Perl tells you. Split it up into two steps and Perl will understand you:
my %Aseen; @Aseen{ @a } = ()
Also, why are you copying the values from @$a_ref into @a just to use it to assign to %Aseen ? Why not use them directly for assigning?
@Aseen{ @$a_ref } = ()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Syntax error for the following ???
by mr_p (Scribe) on Mar 30, 2010 at 18:08 UTC | |
by AnomalousMonk (Archbishop) on Mar 30, 2010 at 20:17 UTC | |
by ikegami (Patriarch) on Mar 30, 2010 at 21:28 UTC |