in reply to Re: Syntax error for the following ???
in thread Syntax error for the following ???

Worked. Thanks.

Don't know how it worked without use strict.

  • Comment on Re^2: Syntax error for the following ???

Replies are listed 'Best First'.
Re^3: Syntax error for the following ???
by AnomalousMonk (Archbishop) on Mar 30, 2010 at 20:17 UTC

    Also note that in the statement
        (@b,@isec) = ArrayFunctions(\@ArrayA, \@ArrayB, \@b, \@isec);
    the array  @b will consume the entire list returned by the  ArrayFunctions() invocation, leaving  @isec eternally empty. This is due to the 'list flattening' behavior of Perl.

Re^3: Syntax error for the following ???
by ikegami (Patriarch) on Mar 30, 2010 at 21:28 UTC

    It doesn't work whether use strict; is used or not.

    $ perl -e'my @Aseen{@a} = ();' syntax error at -e line 1, near "@Aseen{" Execution of -e aborted due to compilation errors.

    You probably added that my at the same time you added use strict;