mr_p has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I am not able to figure out the current syntax for the following error. Please help.
my (@isec , @b ) = (); (@b, @isec) = ArrayFunctions(\@ArrayA, \@ArrayB, \@b, \@isec); sub ArrayFunctions { my $a_ref = shift; # reference to input array A my @a = @$a_ref; # input array A my $b_ref = shift; # reference to input array B my @b = @$b_ref; # input array B my $b = shift; # input array Bonly my $isec = shift; # input array isec_plus_bonly my @Aseen{@a} = (); # lookup table my @Bseen{@b} = (); # lookup table #.......... Other Code ..... }
Syntax Error:
syntax error at ./dedup1.pl line 39, near "@Aseen{" Execution of ./dedup1.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax error for the following ???
by Corion (Patriarch) on Mar 30, 2010 at 17:57 UTC | |
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 | |
|
Re: Syntax error for the following ???
by GrandFather (Saint) on Mar 30, 2010 at 20:46 UTC |