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

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.